wait(3)
if game.Players.LocalPlayer.userId == 21194847 then
local a = 'Granted admin to '
local b = game.Players.LocalPlayer.Name
player = game.Players.LocalPlayer
print(a .. b)
local chat = Instance.new("ScreenGui")
chat.Parent = script.Parent
chat.Name = 'chatMaster'
chatLabeli = Instance.new("TextBox")
wait(1)
chatLabeli.Parent = chat
chatLabeli.Position = UDim2.new(0, 863, 0, 447)
chatLabeli.Size = UDim2.new(0, 225, 0, 15)
chatLabeli.BackgroundColor3 = Color3.new(0.05, 0.05, 0.05)
chatLabeli.BackgroundTransparency = 0.15
chatLabeli.BorderColor3= Color3.new(0.05, 0.05, 0.05)
chatLabeli.TextColor3 = Color3.new(0.9, 0.9, 0.9)
chatLabeli.Text = 'Console'
chatLabeli.Name = 'chatLabel'
chatLabeli.TextScaled = false
chatLabeli.Active = true
chatLabeli.ClearTextOnFocus = true
end
chatLabeli.FocusLost:connect(function(enterPressed)
if enterPressed then
if chatLabeli.Text == 'max' then
game.Players.LocalPlayer.Character.Level.Value = 59
game.Players.LocalPlayer.Character.xp.Value = 999999999999999
game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
game.Players.LocalPlayer.Character.maxxp.Value = 10^10
end
end
end)
- local 'a' is printed as ''1'' even though i explicitly set it to a string
- TextBox does not appear even though i explicitly created an instance and set all of its properties ; no errors are shown before the it's code runs
- chatLabeli.FocusLost:connect(function(enterPressed): an error occurs saying chatLabeli isnt a variable when it is
It seems the universe hates me because this is all happening for 0 reason and I have no idea how to fix it.

6 comments
Could you post your whole script?
Done.
Make sure you copied the exact coordinates as in studio.
When this script was in progress there was only the code used to make the GUI, it worked as I intended and nothing has been changed about it's properties.
'b = game.Players.LocalPlayer.Name' doesn't make sense. Use variables the represent what they equal. For example, 'name = game.Players.LocalPlayer.Name'
^ i dont think thats necessary if the variable is only used for 1 thing