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
Client and server boundaries exist. You cant just execute a local script in the server.
Learn more here.