Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Komas19 34
4 years ago

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

Please help

2 answers

Log in to vote
0
Answered by
GITSTP 19
4 years ago

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

0
where we put the players name ? Komas19 34 — 4y
0
You can't give it to a certain player. It gives it to you GITSTP 19 — 4y
0
I think we can do if game.Players.LocalPlayer.Name = "Komas19" or "USERNAME" or "USERNAME" then Komas19 34 — 3y
Ad
Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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.

Answer this question