Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Simple Destroy GUI w/ Remote events?

Asked by 8 years ago
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

Log in to vote
1
Answered by 8 years ago

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.

0
thanks for telling about that, ill remeber for the future Bubbles5610 217 — 8y
Ad

Answer this question