So I tried to make a remote event that goes from a server script to a client script to change the teamcolor of a player because that cannot be done locally in a server script. In the server script in the model I have the script:
for i,v in pairs(model.PlayersTouching:GetChildren()) do
if v:FindFirstChild("Backpack") then
v.Backpack.ChangeTeamEasy.TeamChangeEasy:FireClient()
end
end
This then goes to a script in the starter pack that parents back to the main local player that has the TeamColor property which I had tried to change using this script that's in the Starterpack, along with a remote event api inside the script:
script:WaitForChild("TeamChangeEasy")
script.TeamChangeEasy.OnClientEvent:connect(function()
script.Parent.Parent.TeamColor = BrickColor.new("Sea green")
end)
However it still has not been successful. Could anyone help me figure out why not?

1 comment
Because FireClient needs a Player to fire.