This script adds a /superman
chat command for the admin to activate Superman powers in Roblox Studio. The admin gains abilities like super speed, flight, and super strength.
-- Define the admin's username local adminUsername = "YourAdminUsername" -- Replace with your admin's username -- Function to grant Superman powers local function grantSupermanPowers(player) -- Give player super speed player.Character.Humanoid.WalkSpeed = 100 -- Normal speed is 16 -- Give player the ability to fly local fly = Instance.new("BodyVelocity") fly.Velocity = Vector3.new(0, 0, 0) fly.MaxForce = Vector3.new(0, 0, 0) fly.Parent = player.Character.HumanoidRootPart -- Bind keys for flight control local userInput = game:GetService("UserInputService") -- Event listener for key down userInput.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed then if input.KeyCode == Enum.KeyCode.Space then fly.Velocity = Vector3.new(0, 100, 0) -- Ascend fly.MaxForce = Vector3.new(100000, 100000, 100000) elseif input.KeyCode == Enum.KeyCode.LeftControl then fly.Velocity = Vector3.new(0, -100, 0) -- Descend fly.MaxForce = Vector3.new(100000, 100000, 100000) end end end) -- Reset flight controls on key release userInput.InputEnded:Connect(function(input, gameProcessed) if not gameProcessed then if input.KeyCode == Enum.KeyCode.Space or input.KeyCode == Enum.KeyCode.LeftControl then fly.Velocity = Vector3.new(0, 0, 0) fly.MaxForce = Vector3.new(0, 0, 0) end end end) -- Enable super strength local superStrength = Instance.new("BodyVelocity") superStrength.Velocity = Vector3.new(100, 0, 0) superStrength.Parent = player.Character.HumanoidRootPart end -- Listen for chat messages game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) -- Check if the message is "/superman" and the player is the admin if message == "/superman" and player.Name == adminUsername then grantSupermanPowers(player) player:Kick("You now have Superman powers!") end end) end)