Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a Local script change the mouse cursor on a frame?

Asked by 4 years ago

So I'm making an old computer game and I'm trying to make it so it changes the icon when you hover over it and drag it.


--LOCAL SCRIPT-- frame = script.Parent frame.Draggable = true frame.Active = true frame.Selectable = true local button = script.Parent.Close local mouse = game.Players.LocalPlayer:GetMouse() button.MouseButton1Click:Connect(function() frame.Visible = false end) frame.MouseEnter:Connect(function() mouse.Icon = 'rbxassetid://4659826010' end) frame.MouseLeave:Connect(function() mouse.Icon = 'rbxassetid://4659826010' end) frame.MouseMoved:Connect(function() mouse.Icon = 'rbxassetid://4659826010' end)
0
It should work, make sure to make the Icons different, they are all the same assetId currently. Torren_Mr 334 — 4y
0
yeah I want it to be the same icon Cookie_clicker2 16 — 4y

Answer this question