local sub = vci.assets.GetTransform("get") function onMessage(sender, name, message) -- The sender is in a table structure The information of the VCI that executed the vci.message.Emit function -- { -- type: "vci" -- name: "name of the vci" -- } -- In the future, the sender will have new messages implemented for k, v in pairs(sender) do print(k .. ":" .. v) end print(name) print(message) if name=="send_box_state" and message=="addforce_on" then print("forceon") sub.AddForce (1000*sub.GetUp()) end end -- When ''vci.message.Emit'' is executed in studio, the onMessage function is called vci.message.On("send_box_state", onMessage)