I wanted the screen GUI to pop up on only the players screen who touched it. the game is suppost to be a self paced story game that has talking. But the screen GUI projects to all players? What should I do?
-- Server Script -- Place into a part local Players = game:GetService("Players") -- Our player service to use the GetPlayerFromCharacter method local Main = script.Parent -- The part we will check if it's touched local Gui = script.ScreenGui -- wherever the gui is located, in my case it's inside the script. Main.Touched:Connect(function(HitTouch) local Player = Players:GetPlayerFromCharacter(HitTouch.Parent) -- Our player if Player and not Player.PlayerGui:FindFirstChild(Gui.Name) then local ClonedGui = Gui:Clone() -- Cloning a replica of the gui we will clone ClonedGui.Parent = Player.PlayerGui -- Parenting it to our player's PlayerGui end end)
Setup should look like this. Image
Hope this has helped, have a great day.