i made a textbutton under a screengui under startergui, the textbutton had this script in it
script.Parent.MouseButton1Click:Connect(function()
print("GUI")
end)
when this didnt work i put the screengui under a script in the workspace, this is the script
game.Players.PlayerAdded:Connect(function(player)
local gui = script.ScreenGui:Clone()
gui.Parent = player
end)
and the gui doesn't even go into the player

3 comments
for the first script use a local script not a normal script.
If my answer solved your problem do not forget to hit that "Accept Answer" button.
shouldnt ScreenGui go into the PlayerGui?