generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Zombie Jump

Previous Thread :: Next Thread 
bladeclone is not online. bladeclone
Joined: 06 Jul 2009
Total Posts: 2179
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 is not online. 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
bladeclone is not online. bladeclone
Joined: 06 Jul 2009
Total Posts: 2179
12 Oct 2013 01:11 PM
Oh wow, I also do stupid stuff like that; thanks man! (:
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image