How Do I Send Data To Server And Client For Excute?

So you add a remote event to ReplicatedStorage then you fire the remote event.

-- Client (local script)
path.to.remote:FireServer("funny string")
-- Script on the server (script)
path.to.remote.OnServerEvent:Connect(function(plr,message)
  Instance.new("Hint", workspace).Text = message
end)

or

You put the code you gave us in a server script.

1 Like