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

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

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

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

Learn more here.

1 comment

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

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