Advertisement
lukeliam2012

video

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