This script is not working for me?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
Hello. I added lines to the script, so instead of letting players pass doors who are from my group, instread it lets door be passed by specific ranks on my group, so i changed the script a bit, but now the doors are not working at all!
06 | G 1 = script.Parent.Parent.Green 1 |
07 | G 2 = script.Parent.Parent.Green 2 |
08 | R 1 = script.Parent.Parent.Red 1 |
09 | R 2 = script.Parent.Parent.Red 2 |
13 | if IsActive then return end |
16 | Player = game.Players:playerFromCharacter(Part.Parent) |
18 | if Player:IsInGroup(CurrentGroup) then |
19 | if Player:GetRankInGroup(CurrentGroup) = = 255 |
20 | if Player:GetRankInGroup(CurrentGroup) = = 254 |
21 | if Player:GetRankInGroup(CurrentGroup) = = 80 |
26 | print ( "Atleast it exists?" ) |
27 | R 1. BrickColor = BrickColor.new( "Really red" ) |
28 | R 2. BrickColor = BrickColor.new( "Really red" ) |
29 | if KillOnContact then Part.Parent:breakJoints() |
31 | R 1. BrickColor = BrickColor.new( "Black" ) |
32 | R 2. BrickColor = BrickColor.new( "Black" ) |
42 | G 1. BrickColor = BrickColor.new( "Lime green" ) |
43 | G 2. BrickColor = BrickColor.new( "Lime green" ) |
45 | Door.CanCollide = false |
47 | G 1. BrickColor = BrickColor.new( "Black" ) |
48 | G 2. BrickColor = BrickColor.new( "Black" ) |
49 | Door.CanCollide = true |
54 | Door.Touched:connect(Touched) |