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