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

How to make a GUI that only the players we say the script of the GUI can see the GUI ?

I tryied before but it didn't worked (I don't remember the code because it was a long ago)

Please help

2 answers

✓ Accepted answer

JesseSong you actually make a gui server sided. If you insert a ModuleScript in StarterGui and then renaming it to "MainModule" and then put the gui into the MainModule script and then in the MainModule script you put in this script

local module = {}

function module:Fire(player)
	local plr = game.Players:FindFirstChild(player)
	local clone = script["GUINAMEGOESHERE"]:Clone()
	clone.Parent = plr.PlayerGui
end
return module

3 comments

0

where we put the players name ?

0

You can't give it to a certain player. It gives it to you

0

I think we can do if game.Players.LocalPlayer.Name = "Komas19" or "USERNAME" or "USERNAME" then

To make a gui you must insert it in a local script this means that any code will run client sided also.

I think what your trying to say is how to make a gui server sided that's impossible because guis can't run server sided. Meaning that other players can't see it. Only you.

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