OotinnyoO

ok

May 23rd, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.72 KB | None | 0 0
  1. Character = game.Players.LocalPlayer.Character
  2. Player = game.Players.LocalPlayer
  3. char = Character
  4. hum = Character.Humanoid
  5. Torso = Character.Torso
  6. Head = Character.Head
  7.  
  8.     char.Shirt.ShirtTemplate = "rbxassetid://1073211165"
  9.     char.Pants.PantsTemplate = "rbxassetid://997496591"
  10.  
  11.  
  12.     local BC = char["Body Colors"]
  13.     BC.HeadColor = BrickColor.new("Pastel brown")
  14.     BC.LeftArmColor = BrickColor.new("Pastel brown")
  15.     BC.LeftLegColor = BrickColor.new("Pastel brown")
  16.     BC.RightArmColor = BrickColor.new("Pastel brown")
  17.     BC.RightLegColor = BrickColor.new("Pastel brown")
  18.     BC.TorsoColor = BrickColor.new("Pastel brown")
  19.  
  20.     char.Head.face.Texture = "rbxassetid://42070872"
  21.  
  22. hum.MaxHealth = math.huge
  23.  
  24.  
  25.  
  26.  
  27. for i,v in pairs(char:children()) do
  28.     if v:IsA("Hat") then
  29.         v:Destroy()
  30.     end
  31. end
  32. for i,v in pairs(char:children()) do
  33.     if v:IsA("Accessory") then
  34.         v:Destroy()
  35.     end
  36. end
  37. for i,v in pairs(char:children()) do
  38.     if v:IsA("Hair") then
  39.         v:Destroy()
  40.     end
  41. end
  42. --141378828
  43. Reaper = Instance.new("Model")
  44. Reaper.Parent = Player.Character
  45. Reaper.Name = "Reaper"
  46. rh = Instance.new("Part")
  47. rh.Parent = Reaper
  48. rh.BrickColor = BrickColor.new("Really red")
  49. rh.Locked = true
  50. rh.CanCollide = false
  51. mesh = Instance.new("SpecialMesh")
  52. rh.formFactor =  "Symmetric"
  53. mesh.MeshType = "FileMesh"
  54. mesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
  55. mesh.TextureId = "http://www.roblox.com/asset/?id=1081380"
  56. mesh.Parent = rh
  57. local weld = Instance.new("Weld")
  58. weld.Parent = rh
  59. rh.Transparency = 0
  60. weld.Part0 = rh
  61. weld.Part1 = Player.Character.Head
  62. weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
  63.  
  64. local s = Instance.new("Sound",char)
  65. s.SoundId = "http://www.roblox.com/asset/?id=458157165"
  66. s.Pitch = 1
  67. s.Volume = 2
  68. s.Looped = true
  69. wait(1)
  70. s:play()
  71.  
  72.  
  73. function sandbox(var,func)
  74.     local env = getfenv(func)
  75.     local newenv = setmetatable({},{
  76.         __index = function(self,k)
  77.             if k=="script" then
  78.                 return var
  79.             else
  80.                 return env[k]
  81.             end
  82.         end,
  83.     })
  84.     setfenv(func,newenv)
  85.     return func
  86. end
  87. cors = {}
  88. mas = Instance.new("Model",game:GetService("Lighting"))
  89. Tool0 = Instance.new("Tool")
  90. Part1 = Instance.new("Part")
  91. SpecialMesh2 = Instance.new("SpecialMesh")
  92. Script3 = Instance.new("Script")
  93. Tool0.Name = "Arrest"
  94. Tool0.Parent = mas
  95. Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  96. Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  97. Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  98. Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  99. Tool0.ToolTip = "Take those skids to gulag!"
  100. Tool0.CanBeDropped = false
  101. Part1.Name = "Handle"
  102. Part1.Parent = Tool0
  103. Part1.FormFactor = Enum.FormFactor.Custom
  104. Part1.Size = Vector3.new(2, 2, 2)
  105. Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  106. Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  107. SpecialMesh2.Parent = Part1
  108. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  109. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  110. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  111. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  112. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  113. Script3.Parent = Part1
  114. debounce = false
  115.  
  116. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  117.  
  118. table.insert(cors,sandbox(Script3,function()
  119. function arrest(hit)
  120.     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
  121.         debounce = true
  122.         num = math.random(1,99)
  123.     local message = Instance.new("Hint",workspace)
  124.     message.Text = hit.Parent.Name.." Has been sent to detention by the principal, "..game.Players.LocalPlayer.Name.."! He or she has to spend 10 minutes in detention!"
  125.     --hit.Parent:Destroy()
  126.    
  127. hit.Parent.Humanoid.MaxHealth = math.huge
  128. print("Godded!")
  129.  a = Instance.new("ForceField", hit.Parent)
  130. a.Visible = false
  131. print("FFed!")
  132.  
  133.     local SOUND = Instance.new("Sound", script.Parent)
  134.     SOUND.SoundId = "rbxassetid://460919688"
  135.     SOUND.Volume = 10
  136.     SOUND:Play()
  137.     BillboardGui0 = Instance.new("BillboardGui")
  138.     TextLabel1 = Instance.new("TextLabel")
  139.     BillboardGui0.Name = "ArrestedGui"
  140.     BillboardGui0.Parent = hit.Parent.Head
  141.     BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  142.     BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  143.     TextLabel1.Name = "Text"
  144.     TextLabel1.Parent = BillboardGui0
  145.     TextLabel1.Transparency = 1
  146.     TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  147.     TextLabel1.Text = hit.Parent.Name.."| In school detention | 10 minutes until release"
  148.         wait(60)
  149.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 9 minutes until release"
  150.         wait(120)
  151.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 8 minutes until release"
  152.         wait(180)
  153.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 7 minutes until release"
  154.         wait(240)
  155.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 6 minutes until release"
  156.         wait(300)
  157.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 5 minutes until release"
  158.         wait(360)
  159.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 4 minutes until release"
  160.         wait(420)
  161.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 3 minutes until release"
  162.         wait(480)
  163.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 2 minutes until release"
  164.         wait(540)
  165.         TextLabel1.Text = hit.Parent.Name.."| In school detention | 1 minute until release"
  166.         wait(600)
  167.         TextLabel1.Text = hit.Parent.Name.."| May get out of detention | Say "out of detention" without quotation marks to get out of detention"
  168.     TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  169.     TextLabel1.BackgroundTransparency = 1
  170.     TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  171.     TextLabel1.Font = Enum.Font.ArialBold
  172.     TextLabel1.FontSize = Enum.FontSize.Size48
  173.     TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  174.     TextLabel1.TextScaled = true
  175.     TextLabel1.TextStrokeTransparency = 0
  176.     TextLabel1.TextWrapped = true
  177.     TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  178.     game:GetService("Debris"):AddItem(SOUND,5)
  179.     game:GetService("Debris"):AddItem(message,5)
  180.         hit.Parent.Humanoid:Destroy()
  181.     --jailtime(hit.Parent)
  182.     wait(3)
  183.     debounce = false
  184.     end
  185.    
  186. end
  187.  
  188.  
  189. function jailtime(char)
  190.     for i = num, 0, -1 do      
  191.     wait(1)
  192.     TextLabel1.Text = char.Name.."| In school detention | 10 minutes until release"
  193.     end
  194. function jailtime(char)
  195.         wait(60)
  196.         TextLabel1.Text = char.Name.."| In school detention | 9 minutes until release"
  197.         end
  198. function jailtime(char)
  199.         wait(120)
  200.         TextLabel1.Text = char.Name.."| In school detention | 8 minutes until release"
  201. function jailtime(char)
  202.         wait(180)
  203.         TextLabel1.Text = char.Name.."| In school detention | 7 minutes until release"
  204. function jailtime(char)
  205.         wait(240)
  206.         TextLabel1.Text = char.Name.."| In school detention | 6 minutes until release"
  207. function jailtime(char)
  208.         wait(300)
  209.         TextLabel1.Text = char.Name.."| In school detention | 5 minutes until release"
  210. function jailtime(char)
  211.         wait(360)
  212.         TextLabel1.Text = char.Name.."| In school detention | 4 minutes until release"
  213. function jailtime(char)
  214.         wait(420)
  215.         TextLabel1.Text = char.Name.."| In school detention | 3 minutes until release"
  216. function jailtime(char)
  217.         wait(480)
  218.         TextLabel1.Text = char.Name.."| In school detention | 2 minutes until release"
  219. function jailtime(char)
  220.         wait(540)
  221.         TextLabel1.Text = char.Name.."| In school detention | 1 minute until release"
  222. function jailtime(char)
  223.         wait(600)
  224.         TextLabel1.Text = char.Name.."| May get out of detention | Say "out of detention" without quotation marks to get out of detention"
  225.         char.Humanoid.MaxHealth = 1
  226. print("Godded!")
  227. char.ForceField:Destroy()
  228. print("UNFFed!")
  229. warn("Player has been sent to detention")
  230.  
  231. char.Humanoid.PlatformStand = false
  232.  
  233. BillboardGui0:Destroy()
  234. end
  235.  
  236. script.Parent.Touched:connect(arrest)
  237. end))
  238. for i,v in pairs(mas:GetChildren()) do
  239.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  240.     pcall(function() v:MakeJoints() end)
  241. end
  242. mas:Destroy()
  243. for i,v in pairs(cors) do
  244.     spawn(function()
  245.         pcall(v)
  246.     end)
  247. end
  248.  
  249. function onChatted(msg, speaker)
  250.    
  251.     source = string.lower(speaker.Name)
  252.     msg = string.lower(msg)
  253.  
  254.     if msg == "out of detention" then
  255.         speaker.Character.Head:remove()
  256.     end
  257. end
  258.  
  259. function onPlayerEntered(newPlayer)
  260.         newPlayer.Chatted:connect(function(msg) onChatted(msg, newPlayer) end)
  261. end
  262.  
  263. game.Players.ChildAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment