local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.ResetOnSpawn = false
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 340, 0, 280)
frame.Position = UDim2.new(0.5, -170, 0.5, -140)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
-- // broadcast section
local msgBox = Instance.new("TextBox", frame)
msgBox.Size = UDim2.new(1, -20, 0, 40)
msgBox.Position = UDim2.new(0, 10, 0, 20)
msgBox.PlaceholderText = "Type broadcast message"
msgBox.Text = ""
msgBox.ClearTextOnFocus = false
msgBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
msgBox.TextColor3 = Color3.fromRGB(255, 255, 255)
msgBox.TextScaled = true
local msgBtn = Instance.new("TextButton", frame)
msgBtn.Size = UDim2.new(1, -20, 0, 40)
msgBtn.Position = UDim2.new(0, 10, 0, 70)
msgBtn.Text = "Send Broadcast"
msgBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
msgBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
msgBtn.TextScaled = true
msgBtn.AutoButtonColor = true
-- // points section
local pointsBox = Instance.new("TextBox", frame)
pointsBox.Size = UDim2.new(1, -20, 0, 40)
pointsBox.Position = UDim2.new(0, 10, 0, 130)
pointsBox.PlaceholderText = "Enter points amount (e.g. -9000000000)"
pointsBox.Text = ""
pointsBox.ClearTextOnFocus = false
pointsBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
pointsBox.TextColor3 = Color3.fromRGB(255, 255, 255)
pointsBox.TextScaled = true
local pointsBtn = Instance.new("TextButton", frame)
pointsBtn.Size = UDim2.new(1, -20, 0, 40)
pointsBtn.Position = UDim2.new(0, 10, 0, 180)
pointsBtn.Text = "Set Everyone's Points"
pointsBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
pointsBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
pointsBtn.TextScaled = true
pointsBtn.AutoButtonColor = true
-- // load admin button
local adminBtn = Instance.new("TextButton", frame)
adminBtn.Size = UDim2.new(1, -20, 0, 40)
adminBtn.Position = UDim2.new(0, 10, 0, 230)
adminBtn.Text = "Load Admin"
adminBtn.BackgroundColor3 = Color3.fromRGB(100, 255, 100)
adminBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
adminBtn.TextScaled = true
adminBtn.AutoButtonColor = true
-- // functionality
msgBtn.MouseButton1Click:Connect(function()
local msg = msgBox.Text
if msg ~= "" then
ReplicatedStorage.GlobalBroadcast:FireServer(msg)
end
end)
pointsBtn.MouseButton1Click:Connect(function()
local amount = tonumber(pointsBox.Text)
if amount then
for _, plr in ipairs(Players:GetPlayers()) do
local args = {
plr:WaitForChild("leaderstats"):WaitForChild("Points"),
amount
}
ReplicatedStorage:WaitForChild("changestat"):FireServer(unpack(args))
end
end
end)
adminBtn.MouseButton1Click:Connect(function()
local localPlayer = Players.LocalPlayer
pcall(function()
localPlayer.PlayerGui.adminonly.Frame.LocalScript:Destroy()
end)
local cloneref = cloneref or function(...) return ... end
local players = cloneref(Players)
warn("activating admin panel")
task.wait(1)
repeat
task.wait()
local suc = pcall(function()
localPlayer.PlayerGui.adminonly.TextButton[1 + 1 ~= 3 and "Visible"] = (not false)
end)
pcall(function()
localPlayer.PlayerGui.adminonly.Frame.LocalScript:Destroy()
end)
if not suc then
warn("failed!")
end
until nil
end)
Comments
w faps?!! (filler ughghh)
Welp the game is private temporarily
w very good
W script w faps
This is the last post i make on this game i swear