Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local main = Instance.new("ScreenGui")
- local tpsyes = Instance.new("Frame")
- local plr = Instance.new("TextBox")
- local makecrim = Instance.new("TextButton")
- local spamon = Instance.new("TextButton")
- local spamoff = Instance.new("TextButton")
- local goto = Instance.new("TextButton")
- local kill = Instance.new("TextButton")
- local arrest = Instance.new("TextButton")
- local taze = Instance.new("TextButton")
- main.Name = "main"
- main.Parent = game.CoreGui
- tpsyes.Name = "tpsyes"
- tpsyes.Parent = main
- tpsyes.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- tpsyes.Position = UDim2.new(0.616940558, 0, 0.288918197, 0)
- tpsyes.Size = UDim2.new(0, 177, 0, 181)
- tpsyes.Visible = true
- tpsyes.Active = true
- tpsyes.Draggable = true
- plr.Name = "plr"
- plr.Parent = tpsyes
- plr.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- plr.Position = UDim2.new(0.202824682, 0, 0.0275771916, 0)
- plr.Size = UDim2.new(0, 119, 0, 30)
- plr.Font = Enum.Font.SourceSans
- plr.Text = "PLAYERNAME"
- plr.TextColor3 = Color3.fromRGB(255, 252, 253)
- plr.TextSize = 14.000
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local function RemoveSpaces(String)
- return String:gsub("%s","") or String
- end
- local function FindPlayer(String)
- String = RemoveSpaces(String)
- for _, _Player in pairs(Players:GetPlayers()) do
- if _Player.Name:lower():match('^'.. String:lower()) then
- return _Player
- end
- end
- return nil
- end
- makecrim.Name = "make crim"
- makecrim.Parent = tpsyes
- makecrim.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- makecrim.Position = UDim2.new(0.0463105626, 0, 0.232456148, 0)
- makecrim.Size = UDim2.new(0, 75, 0, 23)
- makecrim.Font = Enum.Font.SourceSans
- makecrim.Text = "make criminal"
- makecrim.TextColor3 = Color3.fromRGB(255, 0, 0)
- makecrim.TextSize = 14.000
- makecrim.MouseButton1Down:connect(function()
- local Apart = Instance.new("Part")
- Apart.Name = "PlrsPos"
- Apart.Parent = workspace
- Apart.Anchored = true
- Apart.Archivable = true
- Apart.CFrame = CFrame.new(9e99, 9e99, 9e99)
- local lol = FindPlayer(plr.Text)
- game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
- wait(0.1)
- Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
- local A_1 =
- {
- [1] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(277.738678, 6.89340925, 287.773712)),
- ["Distance"] = 4.7204174995422,
- ["Cframe"] = CFrame.new(832.049377, 101.392006, 2300.97168, 0.843892097, -0.0554918349, 0.533635378, 0, 0.994636595, 0.103430569, -0.536512911, -0.0872842371, 0.839366019),
- ["Hit"] = lol.Character.Head
- },
- [2] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(303.047546, 21.3568707, 260.203888)),
- ["Distance"] = 4.8114862442017,
- ["Cframe"] = CFrame.new(832.390259, 101.550629, 2300.74097, 0.738044441, -0.112958886, 0.665229917, 7.45057971e-09, 0.985887885, 0.16740793, -0.674752235, -0.123554483, 0.727628946),
- ["Hit"] = lol.Character.Head
- },
- [3] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(296.800507, 7.00420141, 268.067932)),
- ["Distance"] = 4.444625377655,
- ["Cframe"] = CFrame.new(832.185486, 101.391617, 2300.70264, 0.775115669, -0.0692948848, 0.628007889, 7.45057971e-09, 0.993967533, 0.109675139, -0.631819367, -0.0850109085, 0.770439863),
- ["Hit"] = lol.Character.Head
- },
- [4] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(284.930573, 11.9850616, 280.483368)),
- ["Distance"] = 4.6211166381836,
- ["Cframe"] = CFrame.new(832.10083, 101.445007, 2300.86963, 0.820150614, -0.0735745132, 0.567397356, 0, 0.991697431, 0.128593579, -0.572147667, -0.105466105, 0.81334126),
- ["Hit"] = lol.Character.Head
- },
- [5] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(294.625824, 2.15741801, 270.538269)),
- ["Distance"] = 4.4639973640442,
- ["Cframe"] = CFrame.new(832.169434, 101.341301, 2300.73438, 0.784266233, -0.0537625961, 0.618090749, -3.7252903e-09, 0.99623847, 0.086654529, -0.620424569, -0.0679602176, 0.781316102),
- ["Hit"] = lol.Character.Head
- }
- }
- local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
- local Event = game:GetService("ReplicatedStorage").ShootEvent
- Event:FireServer(A_1, A_2)
- workspace.Remote.TeamEvent:FireServer("Bright orange")
- LCS = game.Workspace["Criminals spawn"].SpawnLocation
- _G.killAura = true
- wait(0.1)
- Apart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- Apart.Transparency = 14
- Apart.Anchored = true
- Apart.CanCollide = false
- wait(0.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = lol.Character.HumanoidRootPart.CFrame
- istptoplr = true
- wait(0.004)
- if game.Players.LocalPlayer.Team.TeamColor == "Bright orange" then
- wait(2)
- workspace.Remote.TeamEvent:FireServer("Bright orange")
- elseif
- game.Players.LocalPlayer.TeamColor == "Bright blue" then
- workspace.Remote.TeamEvent:FireServer("Bright blue")
- end
- if istptoplr == true then
- while istptoplr do
- wait()
- game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = lol.Character.HumanoidRootPart.CFrame
- LCS = game.Workspace["Criminals spawn"].SpawnLocation
- LCS.CanCollide = false
- LCS.Size = Vector3.new(51.05, 23.12, 54.76)
- LCS.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- LCS.Transparency = 1
- wait(0.1)
- istptoplr = false
- wait(0.04)
- if istptoplr == false then
- LCS.CFrame = CFrame.new(-920.510803, 92.2271957, 2138.27002, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LCS.Size = Vector3.new(6, 0.2, 6)
- LCS.Transparency = 0
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Apart.CFrame
- wait()
- istptoplr = false
- wait(0.1)
- workspace.Remote.TeamEvent:FireServer("Bright orange")
- end
- end
- end
- end)
- spamon.Name = "spam arrest"
- spamon.Parent = tpsyes
- spamon.BackgroundColor3 = Color3.new(0, 0, 0)
- spamon.Position = UDim2.new(0.514209926, 0, 0.232456148, 0)
- spamon.Size = UDim2.new(0, 75, 0, 23)
- spamon.Font = Enum.Font.SourceSans
- spamon.Text = "spam on"
- spamon.TextColor3 = Color3.new(0,0,0)
- spamon.TextSize = 14.000
- spamon.Visible = false
- spamon.MouseButton1Down:connect(function()
- spamon.Visible = false
- spamoff.Visible = true
- local loll = FindPlayer(plr.Text)
- _G.Spam = false
- game:GetService("RunService").Heartbeat:Connect(function()
- if _G.spam == true then
- if loll and loll.Character then
- while _G.spam == true do wait()
- workspace.Remote.arrest:InvokeServer(loll.Character.Torso)
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = llol.Character.HumanoidRootPart.CFrame
- end
- end
- end
- end)
- end)
- spamoff.Name = "Spam arrest"
- spamoff.Parent = tpsyes
- spamoff.BackgroundColor3 = Color3.new()
- spamoff.Position = UDim2.new(0.514209926, 0, 0.232456148, 0)
- spamoff.Size = UDim2.new(0, 75, 0, 23)
- spamoff.Font = Enum.Font.SourceSans
- spamoff.Text = "spam off"
- spamoff.TextColor3 = Color3.new(0,0,0)
- spamoff.TextSize = 14.000
- spamoff.Visible = true
- spamoff.MouseButton1Down:connect(function()
- spamoff.Visible = false
- spamon.Visible = true
- local loll = FindPlayer(plr.Text)
- _G.Spam = true
- game:GetService("RunService").heartbeat:Connect(function()
- if _G.spam == true then
- if loll and loll.Character then
- while _G.Spam == true do wait()
- workspace.Remote.arrest:InvokeServer(loll.Character.Torso)
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = loll.Character.HumanoidRootPart.CFrame
- end
- end
- end
- end)
- end)
- goto.Name = "goto"
- goto.Parent = tpsyes
- goto.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- goto.Position = UDim2.new(0.0463105626, 0, 0.38596493, 0)
- goto.Size = UDim2.new(0, 75, 0, 23)
- goto.Font = Enum.Font.SourceSans
- goto.Text = "teleport to"
- goto.TextColor3 = Color3.fromRGB(255, 0, 0)
- goto.TextSize = 14.000
- goto.MouseButton1Down:connect(function()
- local target = FindPlayer(plr.Text)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
- end)
- kill.Name = "kill"
- kill.Parent = tpsyes
- kill.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- kill.Position = UDim2.new(0.514209926, 0, 0.38596493, 0)
- kill.Size = UDim2.new(0, 75, 0, 23)
- kill.Font = Enum.Font.SourceSans
- kill.Text = "kill"
- kill.TextColor3 = Color3.fromRGB(255, 0, 0)
- kill.TextSize = 14.000
- kill.MouseButton1Down:connect(function()
- local target = FindPlayer(plr.Text)
- local A_1 =
- {
- [1] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(277.738678, 6.89340925, 287.773712)),
- ["Distance"] = 4.7204174995422,
- ["Cframe"] = CFrame.new(832.049377, 101.392006, 2300.97168, 0.843892097, -0.0554918349, 0.533635378, 0, 0.994636595, 0.103430569, -0.536512911, -0.0872842371, 0.839366019),
- ["Hit"] = target.Character.Head
- },
- [2] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(303.047546, 21.3568707, 260.203888)),
- ["Distance"] = 4.8114862442017,
- ["Cframe"] = CFrame.new(832.390259, 101.550629, 2300.74097, 0.738044441, -0.112958886, 0.665229917, 7.45057971e-09, 0.985887885, 0.16740793, -0.674752235, -0.123554483, 0.727628946),
- ["Hit"] = target.Character.Head
- },
- [3] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(296.800507, 7.00420141, 268.067932)),
- ["Distance"] = 4.444625377655,
- ["Cframe"] = CFrame.new(832.185486, 101.391617, 2300.70264, 0.775115669, -0.0692948848, 0.628007889, 7.45057971e-09, 0.993967533, 0.109675139, -0.631819367, -0.0850109085, 0.770439863),
- ["Hit"] = target.Character.Head
- },
- [4] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(284.930573, 11.9850616, 280.483368)),
- ["Distance"] = 4.6211166381836,
- ["Cframe"] = CFrame.new(832.10083, 101.445007, 2300.86963, 0.820150614, -0.0735745132, 0.567397356, 0, 0.991697431, 0.128593579, -0.572147667, -0.105466105, 0.81334126),
- ["Hit"] = target.Character.Head
- },
- [5] =
- {
- ["RayObject"] = Ray.new(Vector3.new(827.412415, 101.489777, 2296.84326), Vector3.new(294.625824, 2.15741801, 270.538269)),
- ["Distance"] = 4.4639973640442,
- ["Cframe"] = CFrame.new(832.169434, 101.341301, 2300.73438, 0.784266233, -0.0537625961, 0.618090749, -3.7252903e-09, 0.99623847, 0.086654529, -0.620424569, -0.0679602176, 0.781316102),
- ["Hit"] = target.Character.Head
- }
- }
- local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
- local Event = game:GetService("ReplicatedStorage").ShootEvent
- Event:FireServer(A_1, A_2)
- end)
- arrest.Name = "arrest"
- arrest.Parent = tpsyes
- arrest.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- arrest.Position = UDim2.new(0.0463105626, 0, 0.548245668, 0)
- arrest.Size = UDim2.new(0, 75, 0, 23)
- arrest.Font = Enum.Font.SourceSans
- arrest.Text = "arrest"
- arrest.TextColor3 = Color3.fromRGB(255, 0, 0)
- arrest.TextSize = 14.000
- arrest.MouseButton1Down:connect(function()
- local target = FindPlayer(plr.Text)
- saved = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame
- wait(0.01)
- game.Workspace.Remote.arrest:InvokeServer(target.Character.HumanoidRootPart)
- wait(0.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = saved
- end)
- taze.Name = "taze"
- taze.Parent = tpsyes
- taze.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- taze.Position = UDim2.new(0.514209926, 0, 0.548245668, 0)
- taze.Size = UDim2.new(0, 75, 0, 23)
- taze.Font = Enum.Font.SourceSans
- taze.Text = "taze"
- taze.TextColor3 = Color3.fromRGB(255, 0, 0)
- taze.TextSize = 14.000
- taze.MouseButton1Down:connect(function()
- local target = FindPlayer(plr.Text)
- local A_1 =
- {
- [1] =
- {
- ["RayObject"] = Ray.new(Vector3.new(829.838562, 101.489998, 2331.25635), Vector3.new(-30.6540909, -5.42795324, 95.0308533)),
- ["Distance"] = 15.355997085571,
- ["Cframe"] = CFrame.new(826.616699, 100.8508, 2340.11279, 0.964640439, -0.00993416365, -0.263382077, 9.31322575e-10, 0.999289393, -0.0376908854, 0.263569355, 0.0363581516, 0.963954985),
- ["Hit"] = target.Character.Torso
- }
- }
- local A_2 = game.Players.LocalPlayer.Backpack["Taser"]
- local Event = game:GetService("ReplicatedStorage").ShootEvent
- Event:FireServer(A_1, A_2)
- end)
- function onKeyPress(toggle, userInputState, inputObject
- if userInputState == Enum.UserInputState.Begin then
- if toggle == false then
- toggle = true
- tpsyes.Visible = true
- else
- toggle = false
- tpsyes.Visible = false
- end
- end
- end
- game.ContextActionService:BindAction("keypress", onKeyPress, false, Enum.KeyCode.B)
Add Comment
Please, Sign In to add comment