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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|