
KeylessUniversal

local ReGui = loadstring(game:HttpGet('https://raw.githubusercontent.com/depthso/Dear-ReGui/refs/heads/main/ReGui.lua'))()
local Window = ReGui:Window({
Title = "Settings - Server",
Size = UDim2.fromOffset(400, 500)
})
-- Server Info Label
Window:Label({Text = "Server Information"})
-- Server name
Window:InputText({
Label = "Server Name",
Value = game:GetService("HttpService"):JSONEncode(game.PlaceId),
Callback = function(self, value)
-- no editing server name, just display
end,
ReadOnly = true
})
-- Server ID
Window:InputText({
Label = "Server ID",
Value = tostring(game.JobId or "N/A"),
ReadOnly = true
})
-- Players Count Label
Window:Label({Text = "Players (" .. tostring(#game.Players:GetPlayers()) .. ")"})
-- List all players with userId and name in multiline text box
Window:InputTextMultiline({
Value = table.concat(
(function()
local t = {}
for i, plr in pairs(game.Players:GetPlayers()) do
table.insert(t, plr.Name .. " [" .. tostring(plr.UserId) .. "]")
end
return t
end)(),
"\n"
),
ReadOnly = true
})
Window:Separator({Text = "Server Controls"})
-- Kick player input and button
local kickNameInput
kickNameInput = Window:InputText({
Label = "Kick Player (username)",
Callback = function(self, value)
kickNameInput.Value = value
end,
})
Window:Button({
Text = "Kick Player",
Callback = function()
local targetName = kickNameInput.Value
if targetName and targetName ~= "" then
local target = game.Players:FindFirstChild(targetName)
if target then
target:Kick("Kicked by server settings menu")
end
end
end
})
-- Server Stats (FPS, Memory)
Window:Label({Text = "Server Stats"})
local function getStats()
local memory = collectgarbage("count") -- Lua memory usage in KB
local playersCount = #game.Players:GetPlayers()
local uptime = os.time() - (game:GetService("DataStoreService").ServerScriptServiceStartTime or os.time())
return "Memory: " .. string.format("%.2f", memory) .. " KB\nPlayers: " .. playersCount .. "\nUptime: " .. uptime .. " sec"
end
local statsConsole = Window:Console({
LineNumbers = false,
ReadOnly = true,
Text = getStats()
})
-- Update server stats every 5 seconds
spawn(function()
while true do
statsConsole.Text = getStats()
wait(5)
end
end)
Window:Separator({Text = "Server Settings Toggles"})
-- Toggle for Allow Friendly Fire (dummy example)
Window:Checkbox({
Value = false,
Label = "Allow Friendly Fire",
Callback = function(self, Value)
-- Your logic to toggle friendly fire here
print("Friendly Fire set to", Value)
end
})
-- Toggle for Server PVP enabled (dummy example)
Window:Checkbox({
Value = true,
Label = "Enable Server PVP",
Callback = function(self, Value)
-- Your logic to toggle PVP here
print("Server PVP enabled:", Value)
end
})
Window:Separator({Text = "Server Commands"})
-- Command input and execute button
local cmdInput
cmdInput = Window:InputText({
Label = "Run Server Command",
Callback = function(self, value)
cmdInput.Value = value
end,
})
Window:Button({
Text = "Execute Command",
Callback = function()
local cmd = cmdInput.Value
if cmd and cmd ~= "" then
-- Very basic command system for demo
if cmd == "shutdown" then
print("Server shutting down...")
for _, plr in pairs(game.Players:GetPlayers()) do
plr:Kick("Server shutdown")
end
elseif cmd == "players" then
print("Players online:", #game.Players:GetPlayers())
else
print("Unknown command:", cmd)
end
end
end
})
Window:Separator({Text = "End of Server Settings"})



credits to chat gpt
yeah i used but only the some scripts the - - everyone may know but only used for the game help, so, thanks for your comment
chat gpt ahh script