Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

(with loop (while true do) )

Thank u and best regards -PPJASK

1 comment

0

while wait() do if player.Team = game:GetService("Team").Red then script.Disabled = true end end

2 answers

local Red = game:GetService("Teams")["Red"]
if player.Team == Red then
script.Disabled = true
end

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.