Tool Power-Ups

Script for Tool (Jump)

local tool = script.Parent


local jump = 250


tool.Equipped:Connect(function()

local player = game.Players:FindFirstChild(tool.Parent.Name)

if player then

player.Character.Humanoid.JumpPower = jump

end

end)


tool.Unequipped:Connect(function()

local player = tool.Parent.Parent

if player then

player.Character.Humanoid.JumpPower = 50

end

end)

Script for Tool (Speed)

local tool = script.Parent


local speed = 50


tool.Equipped:Connect(function()

local player = game.Players:FindFirstChild(tool.Parent.Name)

if player then

player.Character.Humanoid.WalkSpeed = speed

end

end)


tool.Unequipped:Connect(function()

local player = tool.Parent.Parent

if player then

player.Character.Humanoid.WalkSpeed = 16

end

end)