I have this script in a textbutton which is in a surface gui.
local button = script.Parent
local internet = game.StarterGui.Screen.Internet
local InternetSender = game.ReplicatedStorage.RemoteFunctions.Screen:FindFirstChild("InternetOn")
local player = game.Players.LocalPlayer
button.MouseButton1Click:Connect(function()
InternetSender:FireClient(player)
end)
I'm trying to make the script send a signal to a local script using the remote event but when I run it I get an error saying player argument must be a player object. How do you get the player object?

1 comment
You have to use FireServer, which goes from Client to Server. https://scriptinghelpers.org/questions/94651/can-someone-help-me-understand-remote-events-they-dont-work-for-me#87427 | This post will help you understand RemoteEvents