Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
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

0
does it give you an error? ryanaskew 50 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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
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 Magicdevice3 58 — 4y
0
What type of script is it? ryanaskew 50 — 4y
Ad

Answer this question