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
3 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 — 3y

2 answers

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

Ok, this might not work.

local player = game.Players.LocalPlayer
local exampleScript = game.ServerScriptService.exampleScript

if player.Team = "Bright Red" then do
    exampleScript.Disabled = true
end)

Answer this question