cskyro
(kyro)
November 9, 2022, 4:26pm
#1
So I tried to make a custom cursor by disabling the default one so that the default hover curser doesn’t show up when I’m hovering over a TextButton.
Here is the script:
The problem is that the new cursor image appears directly below the mouse, even when I tried to set the anchorpoint to 0.5,0.5.
You can use the Mouse property of a GuiObject.
function renderStepped()
local mouseLocation = uis:GetMouseLocation()
image.Position = mouseLocation
end
weding3
(WedDev)
November 9, 2022, 4:33pm
#3
why don’t you just set the icon of the mouse to be the fake cursor:
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.Icon = 'rbxassetid://73737626'
Well maybe thats because the developer of that game, wants to have something like if something is on interaction it will change the mouse coursor.
weding3
(WedDev)
November 9, 2022, 4:35pm
#5
then change it when that happens
Yea I just meant to do an edit, sorry.
cskyro
(kyro)
November 9, 2022, 4:36pm
#7
I tried this but it didn’t go so well:
Rodigooz
(Rodigooz)
November 9, 2022, 4:36pm
#8
try this
function renderStepped()
local mousePosition = UDmin2.new(0, game:GetService('Players').LocalPlayer:GetMouse().X, 0, game:GetService('Players').LocalPlayer:GetMouse().Y)
image.Position = mousePosition
end
cskyro
(kyro)
November 9, 2022, 4:37pm
#9
Because if I use that method and hover over a TextLabel it would reset back to the default hover mouse cursor
cskyro
(kyro)
November 9, 2022, 4:39pm
#10
I’ll try it [max characters blabalaba]
cskyro
(kyro)
November 9, 2022, 4:40pm
#11
Thanks! It worked [max characters balaba la]
1 Like
Rodigooz
(Rodigooz)
November 9, 2022, 4:42pm
#12
No problem! ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
1 Like
system
(system)
Closed
November 23, 2022, 4:42pm
#13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.