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

How to make if player Team = red then script = Disabled ?

Asked by
PPJASK 19
4 years ago

How to make if player Team = red then script = Disabled ?

(with loop (while true do) )

Thank u and best regards -PPJASK

0
while wait() do if player.Team = game:GetService("Team").Red then script.Disabled = true end end Feelings_La 399 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago
1local Red = game:GetService("Teams")["Red"]
2if player.Team == Red then
3script.Disabled = true
4end
Ad
Log in to vote
0
Answered by 4 years ago

Ok, this might not work.

1local player = game.Players.LocalPlayer
2local exampleScript = game.ServerScriptService.exampleScript
3 
4if player.Team = "Bright Red" then do
5    exampleScript.Disabled = true
6end)

Answer this question