|
| 20 Apr 2015 10:38 AM |
--It is supposed to be so only a certain team can go through a wall to prevent instant spawn killing. Door = script.Parent Player = game.Players.SelectFirstChild
function onTouched() if Player.Teams.Bright_blue_Team.onTouched.Door == true then Door.CanCollide = false wait(1) Door.CanCollide = true if Player.Teams.Bright_blue_Team.onTouched.Door == false then wait(6547464390876439) --What I do when I spam numbers. Door.CanCollide = false wait(0.001) Door.CanCollide = true end end end
Door:Connect(onTouched)
--Can you tell me what is wrong with the script.
Accept your fate or accept the Curb Stomp |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2015 12:34 PM |
| Because "wait(6547464390876439)" will mean when a red team mamber or something touches the door, it will open up until 6547464390876439 where then it'll become unenterable. Make it a shorter number, maybe (.1) or nothing. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2015 12:42 PM |
@TrustMeImRussian
I worked it out, I posted on GM and they worked it out quicker.
Accept your fate or accept the Curb Stomp |
|
|
| Report Abuse |
|
|