|
| 12 Oct 2013 12:39 PM |
Alright guys, it's been a loooooong time since I last played ROBLOX, maybe even a year. So I'm messing around with some stuff for a game I might make. I have this zombie and he's supposed to jump after touching a brick where CanCollide is on (so he can climb over), but I'm getting an error on the second line and he doesn't work, any help is greatly appreciated :)
function onTouched(part) if part.CanCollide = false then return else wait(2) script.Parent.Zombie.WalkSpeed = 5 script.Parent.Zombie.Jump = true wait(1.5) script.Parent.Zombie.WalkSpeed = 14
end end
script.Parent.Zombie.Torso.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 12 Oct 2013 01:07 PM |
function onTouched(part) if part.CanCollide == false then return else wait(2) script.Parent.Zombie.WalkSpeed = 5 script.Parent.Zombie.Jump = true wait(1.5) script.Parent.Zombie.WalkSpeed = 14
end end
script.Parent.Zombie.Torso.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 01:11 PM |
| Oh wow, I also do stupid stuff like that; thanks man! (: |
|
|
| Report Abuse |
|
|