Code is below, the script is inside "ServerScriptService"
print("running") for i, v in pairs(game.Players:GetChildren()) do local player = v:FindFirstChild("PlayerGui") local shopgui = Instance.new('ScreenGui', player) local frame = Instance.new('Frame', player) local textbutton = Instance.new('TextButton', player) local imagebutton = Instance.new('ImageButton', player) imagebutton.Position = UDim2.new(0.98, 0, 0.75, 0) imagebutton.Size = UDim2.new(0, 250, 0, 100) end
You need to put the Frame
, TextButton
, and ImageButton
in to the ScreenGui
.
print("running") for i, v in pairs(game.Players:GetChildren()) do local player = v:FindFirstChild("PlayerGui") local shopgui = Instance.new('ScreenGui', player) local frame = Instance.new('Frame', shopgui) local textbutton = Instance.new('TextButton', frame) local imagebutton = Instance.new('ImageButton', frame) imagebutton.Position = UDim2.new(0.98, 0, 0.75, 0) imagebutton.Size = UDim2.new(0, 250, 0, 100) end
Good Luck!