I'm trying to make a GUI that pops up when you touch it a GUI pops up.
game.Players.PlayerAdded:Connect(function(plr) script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then game.StarterGui.ControlPanel.book.Visible = true wait(1) end end) end
I'm a bit of a noob, so please go easy on me! :)
The problem here is that you're refering to the service StarterGui which puts it in the players PlayerGui when in play mode
game.Players.PlayerAdded:Connect(function(plr) script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then plr.PlayerGui.ControlPanel.book.Visible = true wait(1) end end) end
If you edit it in the StarterGui it will replicate to all players when they respawn next time