Here I have this script in the workspace in a model, and the model has a table of players that it successfully always gets, but I need the FireClient to have a player parameter in it which I don't understand how to do:
for i,v in pairs(model.PlayersTouching:GetChildren()) do
if v:FindFirstChild("Backpack") then
v.Backpack.ChangeTeamEasy.TeamChangeEasy:FireClient()
end
end
I need help making that script have a player parameter in it and if someone could explain how that'd be awesome. It ties into this local script that then is supposed to change the players' team to Sea green:
script:WaitForChild("TeamChangeEasy")
script.TeamChangeEasy.OnClientEvent:connect(function(player)
player.TeamColor = BrickColor.new("Sea green")
end)

1 comment
No, do NOT include the player parameter on OnClientEvent