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: Ehh im trying o do this

Previous Thread :: Next Thread 
tallpie is not online. tallpie
Joined: 09 Feb 2010
Total Posts: 1378
02 Nov 2011 05:17 AM
like a powerup brick if you step on it you will go faster say for a few seconds
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
02 Nov 2011 05:37 AM
function onTouch(hit)
nub = {game.Workspace.tallipe}
if hit.Parent.Name == nub then
nub:remove
elseif
hit.Parent:remove
print("humanoid.Walkspeed = 900000") -- this makes him walk fast
wait(2)
print("humanoid.Walkspeed = 16") -- this makes him walk slow again
end

script.Parent.Touched:connect(onTouch)


heres how you work this you put it in the power up brick if it dosen't work that means you mostlikely have to add another end or something.
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
02 Nov 2011 06:46 AM
Really. Annoying. BTW tallipe, I couldha done that. Put this in the brick.

function onTouch(hit)
hit.Parent.Humanoid.WalkSpeed = 50
wait(2)
hit.Parent.Humanoid.WalkSpeed = 16
end
script.Parent.Touched:connect(onTouch)

His script would delete anything that touched it, and kick you if you touched it tallipe.
Mine should work.
Report Abuse
UttermostExedra is not online. UttermostExedra
Joined: 28 Dec 2009
Total Posts: 2483
02 Nov 2011 10:37 AM
@ultra

Wrong. His script wouldn't even work. Here's the script you're looking for; put it in a brick.

local deb = false

script.Parent.Touched:connect(function(hit)
if not deb then
deb = true
coroutine.wrap(function()
for i,v in pairs(hit.Parent:GetChildren()) do
if v:IsA("Humanoid") then
v.WalkSpeed = 50
wait(2)
v.WalkSpeed = 16
end
end
end)()
coroutine.wrap(function() wait(.5) deb = false end)()
end
end)
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