Server-Scripts refuse to work on SurfaceGui's

Basically, I am trying to create a hacker laptop with a built in SurfaceGui simulating the laptop screen.

The problem is that when i use server scripts for TextButtons, ImageButtons, etc. , It just doesn’t detect the mouse when it’s hovering over the TextButtons. As when i switch to Server View/Perspective, It detects the mouse that im using on the Server side and changes GuiState to Hovering.

Server Perspective:
image
image

Client Perspective:
image
image

Functions that im Using:
.MouseEnter
.MouseLeave
.MouseButton1Click

SurfaceGui Settings:
image

I’ve been searching the web for a while and i couldn’t find a solution. Please help🙏

In order for elements of a SurfaceGui to be interactable, the SurfaceGui must be a descendant of a Player’s PlayerGui (you can use the Adornee property to render the SurfaceGui on a Part). Additionally, you’ll need to listen for these events from a LocalScript.

Is there a way that I can use a server side script as when I use LocalScripts, the Client memory usage gradually increases. (Additional question, Does Client memory usage even change anything?)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.