Can anyone help me with Slower speed with tool equipped?

Yea sure but there’s some glitches with this, if u pull out the tool while standing it makes u crawl, if u Unequip the tool while crawling the animation of u holding iy still plays and still the slow speed same with the other way around if ur not holding a tool and then u equip it while crawling it doesn’t change

Let me send the script rn, so you will make it where it works if any tools is equipped

local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local isRunning = false
local Anim = Humanoid:LoadAnimation(script:WaitForChild("Animation"))
local ToolAnim = Humanoid:LoadAnimation(script:WaitForChild("CrawlAnimationTool"))
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid1 = Character.Humanoid
local OrginialCam = Humanoid.CameraOffset
local tool = script.Parent:WaitForChild("Advanced Flashlight")

Humanoid.Running:Connect(function(Speed) -- no tool out
	if Speed > 0 then
		Anim:AdjustSpeed(1)
	else
		Anim:AdjustSpeed(0)
	end
end)

Humanoid.Running:Connect(function(Speed2) -- if tool out
	if script.EquippedTool.Value == true then
	if Speed2 > 0 then
		ToolAnim:AdjustSpeed(1)
	else
			ToolAnim:AdjustSpeed(0)
		end
	end
end)

-- Short cut functions Start -- 
function CrawlingTool() 
	script.Parent.HumanoidRootPart.CanCollide = false
	Humanoid.HipHeight = -1.9
	humanoid1.CameraOffset = Vector3.new(0, -1, -1.8)
	Humanoid.WalkSpeed = 7
	Anim:Stop()
	ToolAnim:Play()
end

function Crawling() 
	script.Parent.HumanoidRootPart.CanCollide = false
	Humanoid.HipHeight = -1.9
	humanoid1.CameraOffset = Vector3.new(0, -1, -1.8)
	Humanoid.WalkSpeed = 10
	Anim:Play()
	ToolAnim:Stop()
	Anim:AdjustSpeed(0)
end

function StandingUp() 
	script.Parent.HumanoidRootPart.CanCollide = true
	Humanoid.HipHeight = 0
	humanoid1.CameraOffset = Vector3.new(0,0,-0.59)
	Humanoid.WalkSpeed = 16
	Anim:Stop()
	ToolAnim:Stop()
end
-- Short cut functions End -- 

UserInputService.InputBegan:Connect(function(key)
	if key.KeyCode == Enum.KeyCode.C then
		if not isRunning then -- This is crrawling but with a tool equipped
			isRunning = true
			print("Crawling")
			Crawling()
		else
			isRunning = false
			print("Running")
			StandingUp()
		end
		tool.Equipped:Connect(function() --you need to define "tool" for this to work
			if not isRunning then -- Crawling
				isRunning = true
				CrawlingTool()
				print("CrawlWithTool")
			elseif isRunning then -- Walking
				isRunning = false
				StandingUp()
				print("Running")
			end
		end)
	end
end)

Snipping since post is irrelevant.

Still some bugs, when u sometimes if ur crawling and u pull out ur flashlight it brings u back up, also same with if ur not holding ur flashlight and u pull it out it brings u down

Yea it’s weird because it randomly brings u crawling or standing if ur equip ur tool

Snipping since post is irrelevant.

weird, as u see when i equip the tool it brings me down and if i unequip it it brings me up

nvm rewatched vid and its the otherr way arorund

thats another clip

Snipping since post is irrelevant.

I guess but I will try to fix it but I ain’t the best scripter lol

Snipping since post is irrelevant.

Snipping since post is irrelevant.

I tried it and the bug of the tool being equipped bringing you down still happens

Snipping since post is irrelevant.

Idk I got this script from a yt vid I just changed it up a bit

I redid the script and it works a lot better All though while ur crawling and u unequip the tool it doesn’t update

hey the GetChildren thing u made doesnt work i think, i put it where once v gets equipped it prints (“Equipped”) but it doesnt print it

Snipping since post is irrelevant.