Hey! I am a developer for a sword clan, and ever since these new cursors were added today, the swords are freezing, and sometimes crashing our players!
To be clear, I have little to no scripting experience, so I do not understand 90% of this script.
The error message is as follows:
Our script which is flagged in the error is as follows:
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
Tool.Activated:connect(function()
if not(Tool:FindFirstChild'Handle'.Size == script.Parent.Flush.Value)then
while true do end
end
end)
Tool.Equipped:connect(OnEquipped)
Tool.Changed:connect(OnChanged)
For reference the “while true do end” is line 26 as shown in the error.
Thank you for reading!
