#SurfaceGui TextButton not working
1 messages · Page 1 of 1 (latest)
Any errors?
No, the print ("Fired") doesn't even run
Okay but how about the player, how will i be able to get the player viriable?
Wait but the fireclient won't work as i won't have the player variable
Bro what are you doing 😭
..
he did what you told him to do
your advice is very vague
He did not
let me take a look
fr
It legit isn't
you dont need to change anything to the server
is anything overlapping the button and is the button's "active" property set to true?
Step 1. Replace the local script with a normal script
Step 2. Put the runcontext to a client
Step 3. Put the code from the old local script in there
That was what I told him
There is nothing wrong with his buttons
i still think its unnecesary
i never had an issue like this before
so i think something is wrong with the ui itself
For his scenerio, it is tho
You cannot have local scripts in the workspace unless it's a script
and scripts (server scripts only) have a special property that can bypass that
while remaining client sided
There is nothing wrong with the ui
OH
it was in workspace?
mb bro
didnt see that
i didnt think it was in workspace
it's parented to a textbutton
so i assumed it would be in startergui
This ss shows it is a surface ui
And in the picture you can see the surface ui is currently being rendered, which means it is in the workspace
So all he has to do is replace the local script with a server script
and changing the run context to be client sided
Thats the entire fix
i see
could you give me some advice on my post rq if u dont mind
ohh got it, so in here i don't have to put anything
change run context to client
its in the scrips properties
localscripts cannot run in workspace
then its good to go
I already did
sure
ping me cuz idk which one is urs
What about the fireclient, shouldn't it take the player inside
Did u do the fix @rocky flint ?
Cuz it doesn't look like it
o wait
why did u change it
to fireclient
keep as fireserver
he said u dont have to change anything in the script
in the first script, why did you change it to fireclient?
keep it how it was before
mhm
holy s1
holy b1