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

how would a make a clickdecetor event teamlocked?

Asked by
hokyboy 270 Moderation Voter
5 years ago
01local team = ("Really red")
02script.Parent.MouseClick:Connect(function()
03    if game.Players.LocalPlayer.TeamColor == team then
04        script.Parent.MaxActivationDistance = 0
05    script.Parent.Archivable = false
06    script.Parent.Parent.tnt.Transparency = 0
07    script.Parent.Parent.tnt1.Transparency = 0
08    script.Parent.Parent.tnt2.Transparency = 0
09    -------
10    local fire = Instance.new("Fire")
11    fire.size = 4
12    fire.Parent = script.Parent.Parent.tnt
13    --------
14    local fire2 = Instance.new("Fire")
15    fire2.size = 4
View all 37 lines...

Sorry for the bad formatting I dont get an output error but the script won't work I made sure I was in the right team

1 answer

Log in to vote
2
Answered by
karlo_tr10 1233 Moderation Voter
5 years ago

In your case the variable team is string, it must be brickcolor:

1local team = Brickcolor.new("Really red")
Ad

Answer this question