Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Simple Destroy GUI w/ Remote events?

function onClick()
script.Parent.Parent.Parent:Destroy()
end

script.Parent.MouseButton1Down:connect(onClick)

so this normal script should destroy the GUI it is in(however it cant because of filtering enabled). I was wondering how i would approach this. For starters should i use a remote function or event(personally i would'e chosen a remote event). Now usually i would call the client from the server however i cannot access the "ScreenGUI" in the Player's GUI because filtering wont allow it. I was thinking how i could call the server from the client, so i was wondering how i could approach this, because if i send a signal to the server, how would i get it to return something that would destory the GUI when it bounces back? sorry the paragraph ha, any help is useful, thanks ~bubs

1 answer

✓ Accepted answer

This should have nothing to do with the server.

Because the .MouseButton1Down event is registered on the client, and all you're doing is destroying a GUI, you should handle all the work on the client. There is no security risk.

1 comment

0

thanks for telling about that, ill remeber for the future

This discussion is preserved as it was. New answers, comments, and votes are closed.