Advertisement
teotv202

Arrest Script

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