Elaugh14
(Elaugh14)
November 9, 2024, 5:54pm
#1
I made a two function so when the mouse enters my frame known as “Stroke” it will change the mouse cursor. And when it leaves the frame it will change it back to the original one. But for some reason my cursor blinks rapidly with no errors.
CODE:
local mouse = game.Players.LocalPlayer:GetMouse()
Stroke.MouseEnter:Connect(function()
mouse.Icon = "rbxasset://SystemCursors/PointingHand"
end)
Stroke.MouseLeave:Connect(function()
mouse.Icon = "rbxasset://SystemCursors/Arrow"
end)
VIDEO:
OceanTubez
(OceanTubez)
November 9, 2024, 6:00pm
#3
Is the custom cursor even applying? I don’t see any difference in the cursor…
Elaugh14
(Elaugh14)
November 9, 2024, 6:01pm
#4
hmm idk I will go create a bigger version of the stroke to see.
(Will edit my reply in a bit)
EDIT: Its not, it just blinks when it goes on the UI. I don’t know what’s causing this, maybe the mouse image ID doesnt work anymore?
OceanTubez
(OceanTubez)
November 9, 2024, 6:05pm
#5
That seems to be the problem. Try using an image id which IS working.
1 Like
Elaugh14
(Elaugh14)
November 9, 2024, 6:06pm
#6
Ok, but do you know any way that I can get the default cursors? Bc the ones on documentation don’t seem to work.
OceanTubez
(OceanTubez)
November 9, 2024, 6:11pm
#7
Yeah, try reuploading the default cursors
OR
Alternatively, search on the toolbox in the ‘Images’ Category for the cursor you are looking for.
1 Like
There is a way to get the default cursors if you try fetching them from rbxasset://textures/Cursors/
.
Here are the image ids for the default cursors:
rbxasset://textures/Cursors/CrossMouseIcon.png
rbxasset://textures/Cursors/mouseIconCameraTrack.png
rbxasset://textures/Cursors/KeyboardMouse/ArrowCursor.png
rbxasset://textures/Cursors/KeyboardMouse/ArrowFarCursor.png
rbxasset://textures/Cursors/KeyboardMouse/IBeamCursor.png
rbxasset://textures/Cursors/DragDetector/ActivatedCursor.png
rbxasset://textures/Cursors/DragDetector/HoverCursor.png
rbxasset://textures/Cursors/Gamepad/IBeamCursor.png
(duplicate of rbxasset://textures/Cursors/KeyboardMouse/IBeamCursor.png
)
rbxasset://textures/Cursors/Gamepad/Pointer.png
rbxasset://textures/Cursors/Gamepad/Pointer@2x.png
(higher quality version of rbxasset://textures/Cursors/Gamepad/Pointer.png
)
rbxasset://textures/Cursors/Gamepad/PointerOver.png
rbxasset://textures/Cursors/Gamepad/PointerOver@2x.png
(higher quality version of rbxasset://textures/Cursors/Gamepad/PointerOver.png
)
Hope this helps.
1 Like
system
(system)
Closed
November 23, 2024, 8:05pm
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.