-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] -- ServerScriptService -> AdminLuckSystem local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") -- CONFIGURATION : Mettez votre ID Roblox à la place du 0 local admins = { = true, } -- Création automatique du RemoteEvent pour le Panel local AdminEvent = Instance.new("RemoteEvent") AdminEvent.Name = "AdminEvent" AdminEvent.Parent = ReplicatedStorage -- Configuration des joueurs à leur entrée dans le jeu Players.PlayerAdded:Connect(function(player) -- Création de la statistique de Luck standard pour les jeux RNG local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local luck = Instance.new("NumberValue") luck.Name = "Luck" luck.Value = 1 -- Multiplicateur de base (x1) luck.Parent = leaderstats -- Vérification du statut Admin d'origine if admins[player.UserId] then player:SetAttribute("IsAdmin", true) else player:SetAttribute("IsAdmin", false) end end) -- Traitement des requêtes du Panel Admin AdminEvent.OnServerEvent:Connect(function(player, action, targetName) -- Sécurité stricte : Seul un joueur avec l'attribut IsAdmin peut exécuter ces commandes if not player:GetAttribute("IsAdmin") then return end local targetPlayer = Players:FindFirstChild(targetName) if not targetPlayer then return end if action == "GiveAdmin" then -- Transfère les droits admin et ouvre le panel de la cible targetPlayer:SetAttribute("IsAdmin", true) AdminEvent:FireClient(targetPlayer, "OpenPanel") elseif action == "InfLuck" then -- Applique la chance infinie absolue (math.huge) sur la statistique du joueur local targetLuck = targetPlayer:FindFirstChild("leaderstats"):FindFirstChild("Luck") if targetLuck then targetLuck.Value = math.huge print("[ADMIN] Luck Infinie activée pour : " .. targetPlayer.Name) end end end)