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

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

Asked by 5 years ago

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
Instead of script.Parent.Visible = true use game.Players.LocalPlayer.PlayerGui.[name of the gui][name of the frame].Visible = true mixgingengerina10 223 — 5y

1 answer

Log in to vote
1
Answered by
JakyeRU 637 Moderation Voter
5 years ago

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.
--]]
Ad

Answer this question