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

How do i fix my Adornee Gui Script that i have put on a part?

Asked by 3 years ago

so i was making a Gui on a part using an Adornee. but the LocalScript wouldent work! Here is my script:

script.Parent.TextButton.MouseButton1Click:Connect(function() -- If button is clicked
    game.StarterGui.Traitorgui.yesORno.Visible = true -- Gui i want to make visible
end)

i have tried putting the script in the button and using Script.Parent but that did not work either i do not know what do to fix it please someone help me

1 answer

Log in to vote
0
Answered by 3 years ago

Client and server boundaries exist. You cant just execute a local script in the server.

Learn more here.

0
i do not understand bc the localscript is inside the button in the starterGui Folder and it worked with andother thing that i did itzstarboss 9 — 3y
Ad

Answer this question