lotushomerun

Arrest Em!

Aug 28th, 2017
1,910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.01 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4.     local env = getfenv(func)
  5.     local newenv = setmetatable({},{
  6.         __index = function(self,k)
  7.             if k=="script" then
  8.                 return var
  9.             else
  10.                 return env[k]
  11.             end
  12.         end,
  13.     })
  14.     setfenv(func,newenv)
  15.     return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Script3 = Instance.new("Script")
  23. Tool0.Name = "Arrest"
  24. Tool0.Parent = mas
  25. Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  26. Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  27. Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  28. Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  29. Tool0.ToolTip = "Take those skids to gulag!"
  30. Tool0.CanBeDropped = false
  31. Part1.Name = "Handle"
  32. Part1.Parent = Tool0
  33. Part1.FormFactor = Enum.FormFactor.Custom
  34. Part1.Size = Vector3.new(2, 2, 2)
  35. Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  36. Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  37. SpecialMesh2.Parent = Part1
  38. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  39. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  40. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  41. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  42. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  43. Script3.Parent = Part1
  44. debounce = false
  45.  
  46. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  47.  
  48. table.insert(cors,sandbox(Script3,function()
  49. function arrest(hit)
  50.     if hit.Parent ~= nil and hit.Parent:FindFirstChild("Head") ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and debounce ~= true and hit.Parent.Head:FindFirstChild("ArrestedGui") == nil then
  51.         debounce = true
  52.         num = math.random(1,99)
  53.     local message = Instance.new("Hint",workspace)
  54.     message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
  55.     --hit.Parent:Destroy()
  56.    
  57. hit.Parent.Humanoid.MaxHealth = math.huge
  58. print("Godded!")
  59.  a = Instance.new("ForceField", hit.Parent)
  60. a.Visible = false
  61. print("FFed!")
  62.  
  63.     local SOUND = Instance.new("Sound", script.Parent)
  64.     SOUND.SoundId = "rbxassetid://460919688"
  65.     SOUND.Volume = 10
  66.     SOUND:Play()
  67.     BillboardGui0 = Instance.new("BillboardGui")
  68.     TextLabel1 = Instance.new("TextLabel")
  69.     BillboardGui0.Name = "ArrestedGui"
  70.     BillboardGui0.Parent = hit.Parent.Head
  71.     BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  72.     BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  73.     TextLabel1.Name = "Text"
  74.     TextLabel1.Parent = BillboardGui0
  75.     TextLabel1.Transparency = 1
  76.     TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  77.     TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
  78.     TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  79.     TextLabel1.BackgroundTransparency = 1
  80.     TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  81.     TextLabel1.Font = Enum.Font.ArialBold
  82.     TextLabel1.FontSize = Enum.FontSize.Size48
  83.     TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  84.     TextLabel1.TextScaled = true
  85.     TextLabel1.TextStrokeTransparency = 0
  86.     TextLabel1.TextWrapped = true
  87.     TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  88.     game:GetService("Debris"):AddItem(SOUND,5)
  89.     game:GetService("Debris"):AddItem(message,5)
  90.         hit.Parent.Humanoid:Destroy()
  91.     --jailtime(hit.Parent)
  92.     wait(3)
  93.     debounce = false
  94.     end
  95.    
  96. end
  97.  
  98.  
  99. function jailtime(char)
  100.     for i = num, 0, -1 do      
  101.     wait(1)
  102.     TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
  103.     end
  104.    
  105.         char.Humanoid.MaxHealth = 100
  106. print("Godded!")
  107. char.ForceField:Destroy()
  108. print("UNFFed!")
  109.  
  110. char.Humanoid.PlatformStand = false
  111.  
  112. BillboardGui0:Destroy()
  113. end
  114.  
  115. script.Parent.Touched:connect(arrest)
  116. end))
  117. for i,v in pairs(mas:GetChildren()) do
  118.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  119.     pcall(function() v:MakeJoints() end)
  120. end
  121. mas:Destroy()
  122. for i,v in pairs(cors) do
  123.     spawn(function()
  124.         pcall(v)
  125.     end)
  126. end
Add Comment
Please, Sign In to add comment