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

Why is this GUi for a specific person not working? Please help.

Hello, I've been trying to make a gui/textbutton for only 1 specific person. So far, all i've tried hasn't worked. Here is what i've tried:

if game.Players.LocalPlayer.Name == "kingbooker48" then script.Parent.Visible = true

(I am very new to scripting, don't judge me lol)

1 comment

1

Instead of script.Parent.Visible = true use game.Players.LocalPlayer.PlayerGui.[name of the gui][name of the frame].Visible = true

1 answer

✓ Accepted answer

Hello. Add a LocalScript in your ScreenGui and add this:

local player = game.Players.LocalPlayer

if player.Name == "JakyeRU" then
	script.Parent.Parent.Enabled = true
end

--[[
	Change JakyeRU with your name.
	Change script.Parent.Parent.Enabled = true with your ScreenGui location.
--]]

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