The script is a server script and it has text in the TextBox,
The script should act as a Server Script output system. But the GUI will only add the error/warn/print/getmetatable into the players gui, BUT the wierd thing is, The error/warn/print/getmetatable TextLabel goes into another players gui.. Why?
https://www.youtube.com/watch?v=R_Qms7fkH2U
AdminGuiFrame=function(player)
coroutine.resume(coroutine.create(function()
local r,e = ypcall(function()
if player.PlayerGui then
wait(.3)
local Open=true
local Gui=Instance.new('ScreenGui',player.PlayerGui)
Gui.Name='AdminGuiFrame'
local Frame=Instance.new('Frame',Gui)
Frame.BackgroundColor3=Color3.new(0/255,0/255,0/255)
Frame.BackgroundTransparency=.43
Frame.Name='GuiFrame'..player.Name
Frame.BorderSizePixel=0
Frame.Position=UDim2.new(.998,0,.57,0)
Frame.Size=UDim2.new(.25,0,.113,0)
Frame.Draggable=true
local OG=Instance.new('TextButton',Frame)
OG.BackgroundColor3=Color3.new(0/255,0/255,0/255)
OG.BackgroundTransparency=.53
OG.Name='GuiButton'
OG.BorderSizePixel=0
OG.Position=UDim2.new(-.3,0,0,0)
OG.Size=UDim2.new(.3,0,1,0)
OG.Font='SourceSansBold'
OG.FontSize='Size24'
OG.Text='Open'
OG.TextColor3=Color3.new(255/255,255/255,255/255)
OG.TextScaled=false
local HLink=Instance.new('TextBox',Frame)
HLink.BackgroundColor3=Color3.new(0/255,0/255,0/255)
HLink.BackgroundTransparency=.53
HLink.Name='HttpLink'
HLink.BorderSizePixel=0
HLink.Position=UDim2.new(.02,0,0.04,0)
HLink.Size=UDim2.new(.86,0,.28,0)
HLink.Font='ArialBold'
HLink.FontSize='Size14'
HLink.TextColor3=Color3.new(255/255,255/255,255/255)
HLink.TextScaled=true
HLink.Text='Code Exe (Server only)'
HLink.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
HLink.TextStrokeTransparency=.3
local HSubmit=Instance.new('TextButton',Frame)
HSubmit.BackgroundColor3=Color3.new(0/255,0/255,0/255)
HSubmit.BackgroundTransparency=.63
HSubmit.Name='GuiButton'
HSubmit.BorderSizePixel=0
HSubmit.Position=UDim2.new(.88,0,.04,0)
HSubmit.Size=UDim2.new(.1,0,.28,0)
HSubmit.Font='SourceSansBold'
HSubmit.FontSize='Size18'
HSubmit.Text='S'
HSubmit.TextColor3=Color3.new(85/255,255/255,0/255)
HSubmit.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
HSubmit.TextStrokeTransparency=.87
local MLink=Instance.new('TextBox',Frame)
MLink.BackgroundColor3=Color3.new(0/255,0/255,0/255)
MLink.BackgroundTransparency=.53
MLink.Name='HttpLink'
MLink.BorderSizePixel=0
MLink.Position=UDim2.new(.02,0,0.34,0)
MLink.Size=UDim2.new(.86,0,.28,0)
MLink.Font='ArialBold'
MLink.FontSize='Size14'
MLink.TextColor3=Color3.new(255/255,255/255,255/255)
MLink.TextScaled=true
MLink.Text='Music Here'
MLink.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
MLink.TextStrokeTransparency=.3
local MSubmit=Instance.new('TextButton',Frame)
MSubmit.BackgroundColor3=Color3.new(0/255,0/255,0/255)
MSubmit.BackgroundTransparency=.63
MSubmit.Name='GuiButton'
MSubmit.BorderSizePixel=0
MSubmit.Position=UDim2.new(.88,0,.34,0)
MSubmit.Size=UDim2.new(.1,0,.28,0)
MSubmit.Font='SourceSansBold'
MSubmit.FontSize='Size18'
MSubmit.Text='S'
MSubmit.TextColor3=Color3.new(85/255,255/255,0/255)
MSubmit.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
MSubmit.TextStrokeTransparency=.87
local GHLink=Instance.new('TextBox',Frame)
GHLink.BackgroundColor3=Color3.new(0/255,0/255,0/255)
GHLink.BackgroundTransparency=.53
GHLink.Name='HttpLink'
GHLink.BorderSizePixel=0
GHLink.Position=UDim2.new(.02,0,0.64,0)
GHLink.Size=UDim2.new(.86,0,.28,0)
GHLink.Font='ArialBold'
GHLink.FontSize='Size14'
GHLink.TextColor3=Color3.new(255/255,255/255,255/255)
GHLink.TextScaled=true
GHLink.Text='Hint Here'
GHLink.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
GHLink.TextStrokeTransparency=.3
local H2Submit=Instance.new('TextButton',Frame)
H2Submit.BackgroundColor3=Color3.new(0/255,0/255,0/255)
H2Submit.BackgroundTransparency=.63
H2Submit.Name='GuiButton'
H2Submit.BorderSizePixel=0
H2Submit.Position=UDim2.new(.88,0,.64,0)
H2Submit.Size=UDim2.new(.1,0,.28,0)
H2Submit.Font='SourceSansBold'
H2Submit.FontSize='Size18'
H2Submit.Text='S'
H2Submit.TextColor3=Color3.new(85/255,255/255,0/255)
H2Submit.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
H2Submit.TextStrokeTransparency=.87
---------[[ OUTPUT ]]---------
local OFrame=Instance.new('Frame',Gui)
OFrame.BackgroundColor3=Color3.new(0/255,0/255,0/255)
OFrame.BackgroundTransparency=.43
OFrame.Name='OutputFrame'..player.Name
OFrame.BorderSizePixel=0
OFrame.Position=UDim2.new(.998,0,.26,0)
OFrame.Size=UDim2.new(.25,0,.31,0)
local TB=Instance.new('TextButton',OFrame)
TB.BackgroundColor3=Color3.new(0/255,0/255,0/255)
TB.BackgroundTransparency=.53
TB.BorderSizePixel=0
TB.Position=UDim2.new(-.3,0,.67,0)
TB.Size=UDim2.new(.3,0,.33,0)
TB.Font='SourceSansBold'
TB.FontSize='Size24'
TB.Text='Clear'
TB.TextColor3=Color3.new(255/255,255/255,255/255)
local SF=Instance.new('ScrollingFrame',OFrame)
SF.BackgroundColor3=Color3.new(0/255,0/255,0/255)
SF.BackgroundTransparency=1
SF.BorderSizePixel=0
SF.Name='OutputFrame'
SF.Size=UDim2.new(1,0,1,0)
SF.CanvasSize=UDim2.new(0,0,1.1,0)
local CurrentOutputs={}
------------------------------------------- OUTPUT HERE ----------------------------------
-----------------------
function AddGreenOutput(msg,Plr)
print(Plr.Name)
local gr,ge=ypcall(function()
local GT=Instance.new('TextLabel',SF)
GT.BackgroundColor3=Color3.new(0/255,0/255,0/255)
GT.BackgroundTransparency=1
GT.BorderSizePixel=0
GT.Size=UDim2.new(.94,0,.1,0)
GT.Font='Arial'
GT.FontSize='Size24'
GT.Text=msg
GT.TextColor3=Color3.new(85/255,255/255,0/255)
GT.TextScaled=true
GT.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
GT.TextStrokeTransparency=.93
print(GT.Parent)
GT.Position=UDim2.new(0,0,(#CurrentOutputs*.14),0)
table.insert(CurrentOutputs,GT)
end)
if not gr then print(ge) end
end
function AddRedOutput(msg,Plr)
print(Plr.Name)
local gr,ge=ypcall(function()
local GT=Instance.new('TextLabel',SF)
GT.BackgroundColor3=Color3.new(0/255,0/255,0/255)
GT.BackgroundTransparency=1
GT.BorderSizePixel=0
GT.Size=UDim2.new(.94,0,.1,0)
GT.Font='Arial'
GT.FontSize='Size24'
GT.Text=msg
GT.TextColor3=Color3.new(255/255,0/255,0/255)
GT.TextScaled=true
GT.TextStrokeColor3=Color3.new(255/255,255/255,255/255)
GT.TextStrokeTransparency=.93
print(GT.Parent)
GT.Position=UDim2.new(0,0,(#CurrentOutputs*.14),0)
table.insert(CurrentOutputs,GT)
end)
if not gr then print(ge) end
end
function AddYellowOutput(msg,Plr)
print(Plr.Name)
local gr,ge=ypcall(function()
local GT=Instance.new('TextLabel',SF)
GT.BackgroundColor3=Color3.new(255/255,250/255,0/255)
GT.BackgroundTransparency=1
GT.BorderSizePixel=0
GT.Size=UDim2.new(.94,0,.1,0)
GT.Font='Arial'
GT.FontSize='Size24'
GT.Text=msg
GT.TextColor3=Color3.new(255/255,170/255,0/255)
GT.TextScaled=true
GT.TextStrokeColor3=Color3.new(0/255,0/255,0/255)
GT.TextStrokeTransparency=.93
GT.Position=UDim2.new(0,0,(#CurrentOutputs*.14),0)
table.insert(CurrentOutputs,GT)
end)
if not gr then print(ge) end
end
local function ClearOutput()
table.foreach(CurrentOutputs,function(i,v)
if v.ClassName=='TextLabel' then
v:remove()
end
end)
CurrentOutputs={}
return
end
TB.MouseButton1Down:connect(ClearOutput)
----------------------------------------
HSubmit.MouseButton1Click:connect(function()
local Func,Error = loadstring(HLink.Text)
if Error == nil then
Func()
AddGreenOutput(('Executed script!'),player)
else
AddRedOutput((Error),player)
end
end)
end
end)
if not r then print(e) end
end))
end
for _,plr in pairs(game.Players:GetPlayers()) do
plr.CharacterAdded:connect(function()
GGUI_V1.Functions.Guis.AdminGuiFrame(plr)
end)
end

2 comments
Can you include the rest of the script...? There's nothing here that references a player, so there's no really anything here to say why it would go to someone else.
kk I will make a small video and add 20% of my code.. Because the gui instancing is like 300lines of coding.