Tool=script.Parent Players=game:GetService("\080\108\097\121\101\114\115")Player=Players.LocalPlayer Icons={Normal="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\071\117\110\067\117\114\115\111\114\046\112\110\103";Reloading="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\071\117\110\087\097\105\116\067\117\114\115\111\114\046\112\110\103"}ToolEquipped=false function UpdateIcon()if Mouse and ToolEquipped then Mouse.Icon=(Tool.Enabled and(Mouse.Icon==Icons.Reloading or Mouse.Icon==""))and Icons.Normal or(not Tool.Enabled and(Mouse.Icon==Icons.Normal or Mouse.Icon==""))and Icons.Reloading or Mouse.Icon end end function Equipped()ToolEquipped=true Mouse=Player:GetMouse()MouseChanged=Mouse.Changed:connect(Changed)UpdateIcon()end function Unequipped()ToolEquipped=false Mouse.Icon=""if MouseChanged then MouseChanged:disconnect()end end function Changed(b)if b=="\069\110\097\098\108\101\100"or b=="\073\099\111\110"and Mouse.Icon==""then UpdateIcon()end end Tool.Changed:connect(Changed)Tool.Equipped:connect(Equipped)Tool.Unequipped:connect(Unequipped)
--Made by Luckymaxer

Tool = script.Parent

Players = game:GetService("Players")

Player = Players.LocalPlayer

Icons = {
	Normal = "rbxasset://textures/GunCursor.png",
	Reloading = "rbxasset://textures/GunWaitCursor.png",
}

ToolEquipped = false

function UpdateIcon()
	if Mouse and ToolEquipped then
		Mouse.Icon = (
			((Tool.Enabled and (Mouse.Icon == Icons.Reloading or Mouse.Icon == "")) and Icons.Normal)
			or ((not Tool.Enabled and (Mouse.Icon == Icons.Normal or Mouse.Icon == "")) and Icons.Reloading)
			or Mouse.Icon
		)
	end
end

function Equipped()
	ToolEquipped = true
	Mouse = Player:GetMouse()
	MouseChanged = Mouse.Changed:connect(Changed)
	UpdateIcon()
end

function Unequipped()
	ToolEquipped = false
	Mouse.Icon = ""
	if MouseChanged then
		MouseChanged:disconnect()
	end
end

function Changed(Property)
	if Property == "Enabled" or (Property == "Icon" and Mouse.Icon == "") then
		UpdateIcon()
	end
end

Tool.Changed:connect(Changed)

Tool.Equipped:connect(Equipped)
Tool.Unequipped:connect(Unequipped)
