Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a Pop-up GUI when i go near an Union?

local Gui = Game:GerService("ServerStorage")
	 
	script.Parent.Touched:connect(function(Part)
	local Player = Game.Players:GetPlayerFromCharacter(Part.Parent)
	    if Player and not Player.PlayerGui:FindFirstChild(Gui.Name) then
	        Gui:Clone().Parent = Player.PlayerGui
	    end
	end)

^ My code

{I've put the code inside the Union and i made an typewriter effect script inside the ScreenGui..Everytime i go near it nothing happens? Even i turn on or off the Visible thing in the Frame's properties. }

If Anyone could tell me what's wrong with the code, I'd be happy to thank you in advance.

1 answer

✓ Accepted answer

The first line should be...

local Gui = Game:GetService("ServerStorage"):WaitForChild("GUINAME")

You put an 'r' instead of a 't'. Also, you are referencing the ServerStorage, not a GUI.

Also if you are on Filtering Enabled, I don't think you can access what is inside the player's PlayerGui from the server.

This discussion is preserved as it was. New answers, comments, and votes are closed.