#Cursor unlocking
1 messages · Page 1 of 1 (latest)
What I would do is make a value called like mouse lock and in starter player every time that changes if it’s true unlock the players mouse
Ui.Modal = true. Unlocks mouse when Ui is visible
Hey, you know where I should add that line? this script also highlights models the player hovers on with their mouse
https://pastebin.com/2BQ9KTg9
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
You don’t have to add any lines. Just set that property to true
Yes
I recall it being a property inherited by all gui elements, yet I may be mistaken
Yikes, I can't seem to find such a property
Sorry, my phone was about to die so I didn't have time to look it up
It's a property of buttons (text/image)
I figured that out and I got it working now, but the cursor wont show over the actual UI, if I move it over the UI, it will just hide beneath it, you know how I could fix that?
The button doesn't have to be have any size for it to work, so you could just set the size to 0,0,0,0 and remove the text
I've never had that happen before to be frank. Mind explaining what you've done (or did you actually just use modal on a 0,0,0,0 size button?)
My Note1 Gui has a frame and inside of that frame I have this close button(which is a text button) and I just went into the text button properties and turned on modal
And now the mouse doesn't show up over the UI?
Indeed, it just hides beneath the UI if I hover it over the ui
Odd, mind sharing the properties of the frame?
That's odd, I don't see anything strange about them to be frank
I have a custom cursor that I am using, which is using an image label to display the cursor
** You are now Level 3! **
@vast latch without kidding this time, do you see any reason why the mouse wouldn't appear in this UI?
Aah, maybe it's just zindex order issues
Is this frame and the frame for the mouse on the same "level" (so both parented to the same parent)?
No, this frame is part of GUI X and the mouse frame is part of GUI Y
@untold forum what is your issue
is GUI Y's zindex higher than GUI X's?
When I move the cursor to hover over the UI the cursor will just hide beneath the UI instead of showing on top of it
(or if they're screenguis, then DisplayOrder)
Yeah, its higher
For Gui Y its 5
For Gui X its 1
Look at this video to undestand the problem @vast latch
You need to watch the mouse cursor
custom cursor not showing through UI frame
Zindex value probably
Should I set Gui X zindex higher than Gui Y(cursor frame) index?
is your cursors zindex higher than the GUI itself
this is weird
I've never had this happen to me personally speaking
Let me see if I can find anything on the forums about your issue
Already tried to do the same. I cannot find any reason as to why it would do that
Unless, it has to do with some hover over thingy
(When hovering over buttons you get a different mouse icon. So if that icon doesn't exist then it may be transparent. Just not sure why the UI would be transparent
yeah this is super weird
the cursor zindex should always be above the frame zindex
(weird UI is due to me trying to replicate the image without having to spend 5 minutes scripting a basic mouse 😆
Yeah, its higher
unless it has to do with anything script related
To be frank, the main thing is, the screengui that has the mouse in it has a higher layout order, so zindex doesn't even matter anymore
wait
Guys
@untold forum
I just discovered something
Show me your ScreenGui Properties
If I use the default cursor, it will work just fine
When I use the custom one it wont work no more
Which ScreenGui?
the one that holds the cursor image
try using global on zindexbehavior
not working
why would you have a layout order if you're not using grids/lists/pages
The custom dot cursor frame has an image label inside of it for the actual cursor, maybe the image label of the cursor doesnt behave properly when it overlaps with the "Note1" Ui?
wrong term
can you show how the cursor looks like
Zindex but for screenguis
in the explorer
this is so confusing, I've never had this issue before with custom cursors
what's the frame for?
you could've used the image only as it's own child
Oh, I tought a frame was necesary
not always
that's your issue
the frame's zindex is below the overall frame
just use an imagelabel
I did what you told me, but I still have the same problem