This script, located in a localscript in PlayerGui, doesn't work. It's supposed to reset the cursor to the default ROBLOX cursor is a tool messes it up; however, the script does not fix the issue and you cannot see your cursos upon unequipping a tool. Using print successfully showed the name of tool that was unequippped, but offered nothing more in assistance.

Can someone help me? Here's the script:

local UserInputService = game:GetService("UserInputService")
local mouse = game.Players.LocalPlayer:GetMouse()
local plr = game.Players.LocalPlayer.Character
local tool = game.ReplicatedStorage.Flashdrive
local equip = false

plr.ChildAdded:Connect(function(child)
    if child:IsA("Tool") then
        tool = child
        print(tool.Name)
        equip = true
    end
end)

tool.Unequipped:Connect(function()
    wait(1.5)
    print(tool.Name)
    mouse.Icon = ""
    UserInputService.MouseIconEnabled = true
    equip = false
end)

2 comments

0

Please use code blocks.

0

my bad. thought i had used them.