-- Chat detection local function onChat(message) if not message:sub(1, 1) == PREFIX then return end
local player = Players.LocalPlayer
local Ranks = Owner = "kick", "ban", "slap", "god", "unslap", "fly", "unfly", "heal", "kill", "resetall", "shutdown", Admin = "kick", "slap", "god", "unslap", "fly", "unfly", "heal",
humanoidRootPart.Velocity = velocity
-- Slap command (core to Slap Battle) local function slapPlayer(admin, target) local character = target.Character if not character then return end
-- Random direction and power local direction = Vector3.new( math.random(-100, 100), math.random(30, 80), math.random(-100, 100) ).unit
-- Optional: Add visual effect local effect = Instance.new("Part") effect.Shape = Enum.PartType.Ball effect.Size = Vector3.new(1,1,1) effect.BrickColor = BrickColor.new("Bright red") effect.CFrame = humanoidRootPart.CFrame effect.Anchored = true effect.CanCollide = false effect.Parent = workspace game:GetService("Debris"):AddItem(effect, 1) Slap battle admin script
if cmd == "slap" then if not args[1] then slapPlayer(plr, plr) else local target = findPlayer(args[1]) if target then slapPlayer(plr, target) end end elseif cmd == "megaslap" then local target = args[1] and findPlayer(args[1]) or plr if target and target.Character then target.Character.HumanoidRootPart.Velocity = Vector3.new(0, 200, 0) * 5 end elseif cmd == "god" then local target = args[1] and findPlayer(args[1]) or plr if target and target.Character then target.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) target.Character.Humanoid.BreakJointsOnDeath = false end elseif cmd == "unslap" then -- Reset velocity for all players for _, player in pairs(Players:GetPlayers()) do if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0) player.Character.HumanoidRootPart.AssemblyLinearVelocity = Vector3.new(0,0,0) end end elseif cmd == "resetmap" then -- Reset all map parts to original positions (depends on your map structure) for _, part in pairs(workspace.Map:GetChildren()) do if part:IsA("BasePart") and part:GetAttribute("originalCFrame") then part.CFrame = part:GetAttribute("originalCFrame") end end end end) Place this in StarterPlayerScripts .
-- Send to server AdminRemote:FireServer(cmd, args) end
-- Function to find a player by partial name local function findPlayer(search) for _, plr in pairs(Players:GetPlayers()) do if string.sub(plr.Name:lower(), 1, #search) == search:lower() then return plr end end return nil end -- Chat detection local function onChat(message) if not
-- Remove prefix and split local args = {} for word in message:sub(2):gmatch("%S+") do table.insert(args, word) end
local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local AdminRemote = ReplicatedStorage:WaitForChild("AdminCommand")