I created a tool called "Rasengan" in StarterPack with a handle that I inserted a ParticleEmitter into. What script do I type to make it so when you equip the tool your walkspeed increases to 50 and when you unequip the tool the walkspeed goes back to normal?
✓ ANSWER ACCEPTED
How do I make a tool increase your walk speed?
1 answer
✓ Accepted answer
I want to moderate this question but I also want the rep ;)
To do this, we'll use a local script inside a tool. You can start by putting this tool in StarterPack for testing.
--Define variables
local tool = script.Parent
local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
--we don't really have to wait for humanoid, because it should be loaded by the time you click
tool.Activated:Connect(function()
char.Humanoid.Walkspeed = 50
end)
tool.Activated fires when the user left clicks whilst the tool is active (in their character). It is equivalent to:
local tool = script.Parent
local plr = game:GetService("Players").LocalPlayer
local mouse = plr:GetMouse()
tool.Equipped:Connect(function()
mouse.Button1Down:Connect(function()
end)
end)
But don't do that of course
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Put script you tried in question.