So I have a Roblox’s classic sword and I’m making it more simplified to make it easier in the future to make changes. But, because I changed the normal script it seems the mouse script won’t work. The normal cross hair works, but when I click it doesn’t change the mouse icon to reloading like it should.
How do I do this? For me it’s very hard to understand.
The Script:
--Made by Luckymaxer
Mouse_Icon = "rbxasset://textures/GunCursor.png"
Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
Tool = script.Parent
Mouse = nil
function UpdateIcon()
if Mouse then
Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
end
end
function OnEquipped(ToolMouse)
Mouse = ToolMouse
UpdateIcon()
end
function OnChanged(Property)
if Property == "Enabled" then
UpdateIcon()
end
end
Thank you.
–SilentSuprion