Possible surface gui offset follow mouse position?

what I’m trying to do is a reflector sight or what I’m trying to do is make the image stay at the centre when my gun is moving and not clipping out from the gun

I’ve tried so far i didn’t make it

Here is an example that I take from wiki:
Mark_III_free_gun_reflector_sight_mk_9_variant_reflex_sight_animation

or from my warzone clip:

1 Like

Are the aim sights a gui or a workspace model like the example?

Its a surface gui that I put inside the gun model

Make the sight image (aim thing) inside the iron sight, make sure it doesn’t move along with the sight and enable clip descendants. Something like that should work.

Ummm wdym with dosnt move along?

ClipDescendants is a property of all GuiObject GuiObject | Roblox Creator Documentation

Hmmm I’m using surface gui not gui

ClipDescendant is still a property of SurfaceGui

Ouh thx dude I solved it using 0,X,Y mouse position and ur advice

Can you elaborate, I’m having the same problem as OP and this answer is extremely vague. What steps did you take exactly to achieve this effect?

Sorry for the late reply,
ClipDescendants makes it so the child of the Object can only be inside the parents visible frame. Depending on the structure of your SurfaceGui or ScreenGui, setting the value to True will make it so that the child can only overlap it if that makes sense.

1 Like

I’ve tried placing the Screen Gui as the child of the Surface Gui (and vice versa) and turning on ClipDescendants doesn’t work. I know what ClipDescendants is supposed to do, but I cant get it to actually work.

nvm i just use pointoobjectspace now