
Key RequiredUniversal

local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Window = Rayfield:CreateWindow({
Name = "Beasty Hub",
LoadingTitle = "Loading System...",
LoadingSubtitle = "by Beasty",
ConfigurationSaving = {
Enabled = false
},
Discord = {
Enabled = false
},
KeySystem = true,
KeySettings = {
Title = "Key System",
Subtitle = "Enter the correct key",
Note = "The key is: beasty",
FileName = "BeastyKey",
SaveKey = true,
GrabKeyFromUrl = false,
Key = {"beasty"}
}
})
-- Variables to keep track of the toggle states
local leaderboardEnabled = false
local chatBadgeEnabled = false
local targetUserId = 10236427493
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
-- Core Logic for Leaderboard Status
local function setupLeaderboard(player)
if not leaderboardEnabled then return end
local leaderstats = player:FindFirstChild("leaderstats")
if not leaderstats then
task.wait(0.5)
leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
end
local status = leaderstats:FindFirstChild("Status")
if not status then
status = Instance.new("StringValue")
status.Name = "Status"
status.Parent = leaderstats
end
if player.UserId == targetUserId then
status.Value = ""
else
status.Value = "Player"
end
end
-- Listeners for players joining
Players.PlayerAdded:Connect(setupLeaderboard)
-- Core Logic for Chat Badge
TextChatService.OnIncomingMessage = function(chatMessage: TextChatMessage)
local properties = Instance.new("TextChatMessageProperties")
if chatBadgeEnabled and chatMessage.TextSource and chatMessage.TextSource.UserId == targetUserId then
properties.PrefixText = string.gsub(
chatMessage.PrefixText,
":$",
utf8.char(0xE000) .. ":"
)
end
return properties
end
-- UI Tabs
local MainTab = Window:CreateTab("Main Toggles", nil)
-- Toggles
MainTab:CreateToggle({
Name = "Enable Leaderboard Status",
CurrentValue = false,
Flag = "LeaderboardToggle",
Callback = function(Value)
leaderboardEnabled = Value
if leaderboardEnabled then
-- Run for currently connected players when enabled
for _, player in ipairs(Players:GetPlayers()) do
setupLeaderboard(player)
end
end
end,
})
MainTab:CreateToggle({
Name = "Enable Chat Badge",
CurrentValue = false,
Flag = "ChatBadgeToggle",
Callback = function(Value)
chatBadgeEnabled = Value
end,
})



THIS IS CLIENT SIDED BTW