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 5 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.

01--LOCAL SCRIPT--
02 
03frame = script.Parent
04frame.Draggable = true
05frame.Active = true
06frame.Selectable = true
07local button = script.Parent.Close
08local mouse = game.Players.LocalPlayer:GetMouse()
09 
10button.MouseButton1Click:Connect(function()
11    frame.Visible = false
12end)
13 
14frame.MouseEnter:Connect(function()
15    mouse.Icon = 'rbxassetid://4659826010'
View all 24 lines...
0
It should work, make sure to make the Icons different, they are all the same assetId currently. Torren_Mr 334 — 5y
0
yeah I want it to be the same icon Cookie_clicker2 16 — 5y

Answer this question