I need help in finding/ and or Making Scripts
#4
(02-21-2012, 03:55 PM)Paradox Wrote: [lua]
box = script.Parent

function onCollide(hit)
player = game.Players:getChild(hit.Parent.Name) --not hit.Name, as that would be "Body"
if player then --make sure we're not trying to powerup a potato
player.Speed = 8.0 --Can be changed to desired speed
box.CanCollide = false
box.Transparency = 1
--those two lines to make it "vanish"
sleep(10) --Time Powerup lasts (seconds)
player.Speed = 4.0
sleep(20) --shouldn't reappear for a bit
box.CanCollide = true
box.Transparency = 0
end
end

link(box.Collided, onCollide)
[/lua]

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)