Achieve: I wanna be able to equip the tool in second slot while the character is running without the character stopping.
Problem: Whenever I am running and try to equip the tool in the second slot, no matter the kind of tool, the character just stops and goes into chock-like mode for 3-5 seconds then returns to normal.
Solutions Iāve tried: Looked through custom tool UI script aswell as the run script. Nothing seems out of the ordinary with second slot compared to the other slots.
Created a new tool object and transfered the contents from the old to new.
Run Script:
-- Input Began
UIS.InputBegan:Connect(function(input)
if (input.KeyCode == Enum.KeyCode.LeftShift) then
RunTrack:Play()
Character.Humanoid.WalkSpeed = 25
end
end)
-- Input Ended
UIS.InputEnded:Connect(function(input)
if (input.KeyCode == Enum.KeyCode.LeftShift) then
RunTrack:Stop()
Character.Humanoid.WalkSpeed = 14
end
end)
Note: This occured before the custom tool UI was implemented, so I donāt think that is the issue.