I made a thing to make the player jump higher when they are holding the tool. but its not working?
local tool = script.Parent
tool.Activated:Connect(function()
local humanoid = script.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
humanoid.JumpPower = 120
tool.Unequipped:Connect(function()
humanoid.JumpPower = 50
end)
end
end)
local tool = script.Parent
tool.Equipped:Connect(function()
local humanoid = script.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
humanoid.JumpPower = 120
tool.Unequipped:Connect(function()
humanoid.JumpPower = 50
end)
end
end)