Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character
- -- Objects
- local AdminMessage = Instance.new("BillboardGui")
- local Message = Instance.new("TextLabel")
- -- Properties
- AdminMessage.Name = "AdminMessage"
- AdminMessage.Parent = character.Head
- AdminMessage.AlwaysOnTop = true
- AdminMessage.ExtentsOffset = Vector3.new(0, 4, 0)
- AdminMessage.LightInfluence = 1
- AdminMessage.Size = UDim2.new(0, 200, 0, 50)
- Message.Name = "Message"
- Message.Parent = AdminMessage
- Message.BackgroundColor3 = Color3.new(1, 1, 1)
- Message.BackgroundTransparency = 1
- Message.Size = UDim2.new(0, 200, 0, 50)
- Message.Font = Enum.Font.SciFi
- Message.TextColor3 = Color3.new(0.666667, 0, 0)
- Message.TextSize = 25
- Message.Text = "Coma update 7 fully loaded, "..player.Name.." type -cmds for a list of commands"
- wait(5)
- AdminMessage:remove()
- player.Chatted:connect(function(Said)
- function split(inputstr, sep)
- if sep == nil then
- sep = "%s"
- end
- local t={} ; i=1
- for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
- t[i] = str
- i = i + 1
- end
- return t
- end
- local args = split(Said) -- Default seperator is any whitespace
- if Said == "-cmds" then
- local AdminMessage = Instance.new("BillboardGui")
- local Message = Instance.new("TextLabel")
- -- Properties
- AdminMessage.Name = "AdminMessage"
- AdminMessage.Parent = character.Head
- AdminMessage.AlwaysOnTop = true
- AdminMessage.ExtentsOffset = Vector3.new(0, 4, 0)
- AdminMessage.LightInfluence = 1
- AdminMessage.Size = UDim2.new(0, 200, 0, 50)
- Message.Name = "Message"
- Message.Parent = AdminMessage
- Message.BackgroundColor3 = Color3.new(1, 1, 1)
- Message.BackgroundTransparency = 1
- Message.Size = UDim2.new(0, 200, 0, 50)
- Message.Font = Enum.Font.SciFi
- Message.TextColor3 = Color3.new(0.666667, 0, 0)
- Message.TextSize = 25
- Message.Text = "Coma Commands | ff [plr] | unff [plr] | god [plr] | ungod [plr] | kill [plr]\n | bighead [plr | fixhead [plr] | thin [plr] | unthin [plr] | speed [plr] [amount]\n | jumppower [plr] [amount] | hidecmds"
- end
- if Said:sub(1, 4) == "-ff " then
- if Said:sub(5) == "me" then
- Instance.new("ForceField", character)
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(5))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- Instance.new("ForceField", TargetCharacter)
- end
- end
- end
- if Said:sub(1, 6) == "-unff " then
- if Said:sub(7) == "me" then
- character.ForceField:remove()
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(7))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.ForceField:remove()
- end
- end
- end
- if Said:sub(1, 5) == "-god " then
- if Said:sub(6) == "me" then
- character.Humanoid.MaxHealth = math.huge
- wait()
- character.Humanoid.Health = character.Humanoid.MaxHealth
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(6))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Humanoid.MaxHealth = math.huge
- wait()
- TargetCharacter.Humanoid.Health = TargetCharacter.Humanoid.MaxHealth
- end
- end
- end
- if Said:sub(1, 7) == "-ungod " then
- if Said:sub(8) == "me" then
- character.Humanoid.MaxHealth = 100
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(8))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Humanoid.MaxHealth = 100
- end
- end
- end
- if Said:sub(1, 6) == "-kill " then
- if Said:sub(7) == "me" then
- character.Humanoid.Health = 0
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(7))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Humanoid.Health = 0
- end
- end
- end
- if Said:sub(1, 9) == "-bighead " then
- if Said:sub(10) == "me" then
- character.Head.Mesh.Scale = Vector3.new(2, 2, 2)
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(10))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Head.Mesh.Scale = Vector3.new(2, 2, 2)
- end
- end
- end
- if Said:sub(1, 9) == "-fixhead " then
- if Said:sub(10) == "me" then
- character.Head.Mesh.Scale = Vector3.new(2, 1, 1)
- end
- local TargetPlayer = game.Players:FindFirstChild(Said:sub(10))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Head.Mesh.Scale = Vector3.new(2, 1, 1)
- end
- end
- end
- if Said:sub(1, 6) == "-thin " then
- if Said:sub(7) == "me" then
- character.Humanoid.BodyDepthScale.Value = 0.1
- end
- local TargetPlayer = game.Players:WaitForChild(Said:sub(7))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Humanoid.BodyDepthScale.Value = 0.1
- end
- end
- end
- if Said:sub(1, 8) == "-unthin " then
- if Said:sub(9) == "me" then
- character.Humanoid.BodyDepthScale.Value = 0.92000001668930053711
- end
- local TargetPlayer = game.Players:WaitForChild(Said:sub(9))
- if TargetPlayer then
- local TargetCharacter = TargetPlayer.Character
- if TargetCharacter then
- TargetCharacter.Humanoid.BodyDepthScale.Value = 0.92000001668930053711
- end
- end
- end
- if args[1] == "-speed" then
- -- Player said -speed
- table.remove(args, 1) -- Remove the command
- local targetName = args[1]
- local speed = args[2]
- local player = game:GetService("Players"):FindFirstChild(targetName)
- if targetName == "me" then
- character.Humanoid.WalkSpeed = speed
- end
- if player then
- local char = player.Character or player.CharacterAdded:wait()
- while not char:FindFirstChildOfClass("Humanoid") do
- game:GetService("RunService").Stepped:wait() -- This is NOT the same as RenderStepped and will work server side
- end
- local hum = char:FindFirstChildOfClass("Humanoid")
- hum.WalkSpeed = speed
- end
- end
- if args[1] == "-jumppower" then
- -- Player said -speed
- table.remove(args, 1) -- Remove the command
- local targetName = args[1]
- local power = args[2]
- local player = game:GetService("Players"):FindFirstChild(targetName)
- if targetName == "me" then
- character.Humanoid.JumpPower = power
- end
- if player then
- local char = player.Character or player.CharacterAdded:wait()
- while not char:FindFirstChildOfClass("Humanoid") do
- game:GetService("RunService").Stepped:wait() -- This is NOT the same as RenderStepped and will work server side
- end
- local hum = char:FindFirstChildOfClass("Humanoid")
- hum.JumpPower = power
- end
- end
- if Said == "-hidecmds" then
- character.Head.AdminMessage:remove()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement