basically i want to make a text button gui that when you click, makes a frame visible to every player in game
function onClick() wait() game.Players.LocalPlayer.PlayerGui.spawn.fade.Visible = true end script.Parent.MouseButton1Click:connect(onClick)
Hey there,
Alright so first off it's important to know that you can't just reach the local player like that via a server sided script. You can, however get it by writing this:
script.Parent.MouseClick:Connect(function(plr) -- 'plr' refers to the local player. end)
Additionally, this article should help you out: https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events
Look at how to do "server -> all clients".
Happy scripting! Please give an upvote if this helped, and if it didn't - be sure to ask again ^_^