I'm kind've new to how to use for and learnt stuff about teams but... it's not working but there's nothing wrong with it, it's all right because there's no output saying BLARGH! But it's not working ermmm.. do you get what I mean?
while true do
local player = game.Players:GetChildren()
for i=1, #player do
local mathstuff = (math.floor((player[i].Character.Torso.Position - script.Parent.Parent.Base.Position).magnitude))
if (mathstuff <= 9) and (player[i].TeamColor == "Bright blue") then --Is it this?
for i=1, 30 do
script.Parent.Position = script.Parent.Position - Vector3.new(0, 0.42, 0)
wait(1)
end
end
end
wait()
end
It won't work :<
|