I am trying to fire a remote event when a player touched my block. Here is the code:
local guieventsfolder = game.ReplicatedStorage.GuiEvents local mapevent = guieventsfolder.WinsEvent local levelsevent = guieventsfolder.LevelsEvent local bathroombeginningsensor = game.Workspace.Bathroom.Checkpointbathroomfirst bathroombeginningsensor.Touched:Connect(function(plr) mapevent:FireClient(plr,mapevent) winsevent:FireClient(plr,winsevent) levelsevent:FireClient(plr,levelsevent)
It keeps saying: FireClient:player argument must be a Player object
.
Ps:I never really grasped what the second argument is for.please explain. I know the first parameter is the player, but i don't know what the second one is for.