Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I've attempted a speed potion for a while, any idea on how to go about it?

Asked by 2 years ago

I've been trying to make a speed potion, that once you click anywhere on the screen it adds onto your speed and then destroys the tool, and also have a timer on your speed. (For example after 2-5 minutes it returns you to normal speed).

I have been trying for a couple hours but just can not seem to get it to work, would anybody know how to go about it?

0
What exactly are you stuck on? DrTryarus685 -5 — 2y
0
What have you tried so far? Please provide us with your script. NotThatFamouss 605 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

I Think I May Have An Idea On How You Could Do This.

If You Want It To Be About 2-5 Minutes Take 60 multiply that by 3 You Get 180.

So You Would Do A Wait Function Like This wait(180)

Heres The Script I Think Could Be Useful.

Just A Basic One Nothing Much Else.

-- btw this is a serverscript

local tool = script.Parent
local eq = false

tool.Equipped:Connect(function()
    eq = true
end)

tool.Unequipped:Connect(function()
    eq = false
end)


tool.Activated:Connect(function()
    if eq == true then
        local char = tool.Parent
        char.Humanoid.WalkSpeed = 25 -- add what speed you want.
        wait(180) -- 60x3
        char.Humanoid.WalkSpeed = 16 -- reset speed
    end
end)

That's The Basics You Need For It.

If You Want To Make It More Advanced You Would Have To Put Extra Effects Like FOV Zoom Out, In A Local Script.

I Really Hope This Helped!

Ad

Answer this question