This is a script I'm using to show a gui to only one person. Here is the script. Please if I do have some things wrong don't down vote....

script.Parent.Visible = false
local modscreen = script.Parent 
local player = game.Players.LocalPlayer

if player.Name == "DigitalZer3" then
	script.Parent.Visible = true
	
	
end

if player.Name ~= "DigitalZer3" then
	print("k")
end
if player.Name == "DigitalZer3" and script.Parent.Visible == true then
	print('its alive!')
end

PLEASE IF I HAVE SOMETHING WRONG CORRECT IT, IT WOULD BE VERY HELPFULL. :D

6 comments

1

Seems good.

0

Ty :D

1

no problem :D

0

One comment, the local for modscreen seems pointless, as it isnt being used in this block.

0

You have a capital in Digitalzer, but your name is digitalzer. Lua is cap sensitive. So be careful with that.

0

^ My actual roblox name is DigitalZer3 with caps :P.