Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- Tool0.Name = "Arrest"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
- Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
- Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
- Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
- Tool0.ToolTip = "Take those skids to gulag!"
- Tool0.CanBeDropped = false
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(2, 2, 2)
- Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- Script3.Parent = Part1
- debounce = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
- table.insert(cors,sandbox(Script3,function()
- function arrest(hit)
- 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
- debounce = true
- num = math.random(1,99)
- local message = Instance.new("Hint",workspace)
- message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
- --hit.Parent:Destroy()
- hit.Parent.Humanoid.MaxHealth = math.huge
- print("Godded!")
- a = Instance.new("ForceField", hit.Parent)
- a.Visible = false
- print("FFed!")
- local SOUND = Instance.new("Sound", script.Parent)
- SOUND.SoundId = "rbxassetid://460919688"
- SOUND.Volume = 10
- SOUND:Play()
- BillboardGui0 = Instance.new("BillboardGui")
- TextLabel1 = Instance.new("TextLabel")
- BillboardGui0.Name = "ArrestedGui"
- BillboardGui0.Parent = hit.Parent.Head
- BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
- BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
- TextLabel1.Name = "Text"
- TextLabel1.Parent = BillboardGui0
- TextLabel1.Transparency = 1
- TextLabel1.Size = UDim2.new(1, 0, 1, 0)
- TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
- TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel1.BackgroundTransparency = 1
- TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel1.Font = Enum.Font.ArialBold
- TextLabel1.FontSize = Enum.FontSize.Size48
- TextLabel1.TextColor3 = Color3.new(1, 1, 1)
- TextLabel1.TextScaled = true
- TextLabel1.TextStrokeTransparency = 0
- TextLabel1.TextWrapped = true
- TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
- game:GetService("Debris"):AddItem(SOUND,5)
- game:GetService("Debris"):AddItem(message,5)
- hit.Parent.Humanoid:Destroy()
- --jailtime(hit.Parent)
- wait(3)
- debounce = false
- end
- end
- function jailtime(char)
- for i = num, 0, -1 do
- wait(1)
- TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
- end
- char.Humanoid.MaxHealth = 100
- print("Godded!")
- char.ForceField:Destroy()
- print("UNFFed!")
- char.Humanoid.PlatformStand = false
- BillboardGui0:Destroy()
- end
- script.Parent.Touched:connect(arrest)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment