Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Would I Put This Script For A Team Changing Value?

local Person = script.Parent.Leader.Value
while true do
	wait(0.1)
	game.Players(Person).TeamColor = "Really Red"
end

Here I am Making It So If a Players Name Is In a Value They Change To A Team. But it isn't working. I need Some Help

1 comment

0

does it give you an error?

1 answer

✓ Accepted answer

Try this:

local Person = script.Parent.Leader.Value
local players = game:GetService("Players")
while true do
    wait(0.1)
    players:FindFirstChild(Person).TeamColor = "Really Red"
end

2 comments

0

It Didn't Work And For Some reason It Says The Answer Was Right. It might be the Location Of The Script Or The Type Of The Script Because the script is in the workspace

0

What type of script is it?

This discussion is preserved as it was. New answers, comments, and votes are closed.