So when you hover over a gui the icon is supposed to show, but it seems to replace the Click icon with the regular mouse right away, and i cant figure out how to fix that
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
if player.leaderstats.Timber.Value >= 50 then
player.leaderstats.Timber.Value = player.leaderstats.Timber.Value - 50
game.ReplicatedStorage.Pickaxe:Clone().Parent = player.Backpack
end
end)
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
if player.leaderstats.Timber.Value >= 50 then
player.leaderstats.Timber.Value = player.leaderstats.Timber.Value - 50
game.ReplicatedStorage.Pickaxe:Clone().Parent = player.Backpack
end
end)
local changing = false
local mouse = game.Players.LocalPlayer:GetMouse()
script.Parent.MouseEnter:connect(function(hovering)
if hovering then
mouse.Icon = "rbxasset://textures/DragCursor.png"
else
mouse.Icon = "rbxasset://textures/ArrowFarCursor.png"
end
end)
script.Parent.MouseLeave:connect(function(left)
if left then
mouse.Icon = "rbxasset://textures/ArrowFarCursor.png"
else
mouse.Icon = "rbxasset://textures/DragCursor.png"
end
end)
