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 comment
i do not understand bc the localscript is inside the button in the starterGui Folder and it worked with andother thing that i did