Ive made a script that teleports people to a certain spawn when they are in the group . But the problem is, it doesnt work in servers. only in studio. Can someone fix that for me? I need this script to work in servers:
while wait(1) do
if game.Players.LocalPlayer.TeamColor == BrickColor.new("Pastel green") or game.Players.LocalPlayer.TeamColor == BrickColor.new("Bright red") then
end
end
I hope someone can fix the script for me, Thanks!

5 comments
Is it a local script?
Yep
If It's A Local Script Then Check The Roblox Studio Wiki For What Local Scripts Are For And Where They Are Meant To Be.
Ok, by group do you mean http://wiki.roblox.com/index.php?title=Group or do you mean team: http://wiki.roblox.com/index.php?title=API:Class/Team . If you tell me, I should be able to help you. Message me on ROBLOX and hopefully I'll solve it.
ur the 20,000 user on scripting helpers just to let u know xdd chrisd_1908