Advertisement
lukeliam2012

prison life

Jun 6th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local TestExploits = Instance.new("ScreenGui")
  7. local Frame = Instance.new("ImageLabel")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextButton = Instance.new("TextButton")
  10.  
  11. --Properties:
  12.  
  13. TestExploits.Name = "TestExploits"
  14. TestExploits.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15.  
  16. Frame.Name = "Frame"
  17. Frame.Parent = TestExploits
  18. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  19. Frame.BackgroundTransparency = 1.000
  20. Frame.Position = UDim2.new(0.487841934, 0, 0.447521865, 0)
  21. Frame.Size = UDim2.new(0, 302, 0, 228)
  22. Frame.Image = "rbxassetid://3570695787"
  23. Frame.ImageColor3 = Color3.fromRGB(29, 29, 29)
  24. Frame.ScaleType = Enum.ScaleType.Slice
  25. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  26. Frame.SliceScale = 0.120
  27. Frame.Active = true
  28. Frame.Draggable = true
  29.  
  30. TextLabel.Parent = Frame
  31. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. TextLabel.BackgroundTransparency = 1.000
  33. TextLabel.Size = UDim2.new(0, 302, 0, 104)
  34. TextLabel.Font = Enum.Font.SourceSans
  35. TextLabel.Text = "Press this button then it will arrest all criminals"
  36. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  37. TextLabel.TextScaled = true
  38. TextLabel.TextSize = 14.000
  39. TextLabel.TextWrapped = true
  40.  
  41. TextButton.Parent = Frame
  42. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. TextButton.BackgroundTransparency = 1.000
  44. TextButton.Position = UDim2.new(0.0198675506, 0, 0.456140339, 0)
  45. TextButton.Size = UDim2.new(0, 290, 0, 50)
  46. TextButton.Font = Enum.Font.SourceSans
  47. TextButton.Text = "Arrest all crims"
  48. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. TextButton.TextScaled = true
  50. TextButton.TextSize = 14.000
  51. TextButton.TextWrapped = true
  52.  
  53. -- Scripts:
  54.  
  55. local function MVGHB_fake_script() -- TextButton.LocalScript
  56. local script = Instance.new('LocalScript', TextButton)
  57.  
  58. local Player = game.Players.LocalPlayer
  59. local cpos = Player.Character.HumanoidRootPart.CFrame
  60. TextButton.MouseButton1Click:Connect(function()
  61. for i,v in pairs(game.Teams.Criminals:GetPlayers()) do
  62. if v.Name ~= Player.Name then
  63. local i = 10
  64. repeat
  65. wait()
  66. i = i-1
  67. game.Workspace.Remote.arrest:InvokeServer(v.Character.HumanoidRootPart)
  68. Player.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 1)
  69. until i == 0
  70. end
  71. end
  72. Player.Character.HumanoidRootPart.CFrame = cpos
  73. Notify("Success", "Arrested all of the n00bs", "Cool!")
  74. end)
  75. end
  76. coroutine.wrap(MVGHB_fake_script)()
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement