|
| 04 Aug 2012 01:59 PM |
door = script.Parent
while true do local h = door.Parent.Parent:FindFirstChild("Humanoid")--The Humanoid if h~=nil and if door.ART.Value == 1 then wait(1) door.Parent.Parent.Humanoid.Jump = true wait(4) end end
--[[It's inside the Handle of a hat. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 02:02 PM |
door = script.Parent
while true do local h = door.Parent.Parent:FindFirstChild("Humanoid")--The Humanoid if h~=nil and door.ART.Value == 1 then --No need for 2 'if' statements wait(1) door.Parent.Parent.Humanoid.Jump = true wait(4) end end
-Nick |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 02:03 PM |
Is door.Parent.Parent.Humanoid.Jump a BoolValue?
You need to use .Value if you want to change it.
~This sig is false~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2012 02:14 PM |
There's just one problem..
The game freezes when you take it off and change the ART value to 1.
Which is too bad, don't know how to end the script, otherwise. |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 04 Aug 2012 02:20 PM |
| Change "while true do" to "while wait() do". It was crashing because when ART wasn't 1, it never reached a wait statement and so never slept. |
|
|
| Report Abuse |
|
|
| |
|