Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mouse = print("workspace")
- local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
- gui.Name = "commandhax"
- local textlabel = Instance.new("TextButton", gui)
- textlabel.Size = UDim2.new(0, 400, 0, 200)
- textlabel.Position = UDim2.new(0.5, -195, 0.5, -120)
- textlabel.AutoButtonColor = false
- textlabel.BorderSizePixel = 3
- textlabel.BorderColor3 = Color3.fromRGB(255, 177, 20)
- textlabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- textlabel.TextScaled = true
- textlabel.TextYAlignment = "Top"
- textlabel.TextXAlignment = "Left"
- textlabel.Text = "To run a command, press enter. fire player forcefield player chat player followpart player god player punish player kill player loopkill player createteam "
- textlabel.Draggable = true
- local box = Instance.new("TextBox", textlabel)
- box.Size = UDim2.new(0, 400, 0, 30)
- box.Position = UDim2.new(0, 0, 0, 200)
- box.BorderColor3 = Color3.fromRGB(255, 177, 20)
- box.BorderSizePixel = 3
- box.BackgroundColor3 = Color3.fromRGB(255, 255, 355)
- box.Text = "Commands"
- local chatbox = Instance.new("TextBox", textlabel)
- chatbox.Size = UDim2.new(0, 400, 0, 30)
- chatbox.Position = UDim2.new(0, 0, 0, 230)
- chatbox.BorderColor3 = Color3.fromRGB(255, 177, 20)
- chatbox.BorderSizePixel = 3
- chatbox.BackgroundColor3 = Color3.fromRGB(255, 255, 355)
- chatbox.Text = "Chat and Team Text"
- mouse.KeyDown:connect(function(key)
- key = string.lower(key)
- if string.byte(key) == 13 then
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- if box.Text == "fire " .. v.Name .. " " .. box.Text then
- Instance.new("Fire", v.Character.Head)
- end
- if box.Text == "forcefield " .. v.Name then
- Instance.new("ForceField", v.Character)
- end
- if box.Text == "chat " .. v.Name then
- game.Chat:Chat(v.Character.Head, chatbox.Text, "Blue")
- end
- if box.Text == "followpart " .. v.Name then
- local p = Instance.new("Part", workspace)
- while wait() do
- p.CFrame = CFrame.new(v.Character.HumanoidRootPart.Position)
- end
- end
- if box.Text == "god " .. v.Name then
- v.Character.Humanoid.MaxHealth = "inf"
- end
- if box.Text == "punish " .. v.Name then
- v.Character:Destroy()
- end
- if box.Text == "kill " .. v.Name then
- v.Character:BreakJoints()
- end
- if box.Text == "loopkill " .. v.Name then
- while wait() do
- if v.Character.Humanoid.Health >= 1 then
- v.Character:BreakJoints()
- end
- end
- end
- if box.Text == "createteam" then
- local t = game:GetService("Teams")
- local te = Instance.new("Team", t)
- te.Name = chatbox.Text
- end
- if box.Text == "remove" then
- gui:Destroy()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement