MASTEROFJOHNDOE

Untitled

Nov 25th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----i didn't made the arrest em original script i just add the avatar.
  2. -- This script has been converted to FE by iPxter
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. Character = game.Workspace.YesIAmThough
  89. Player = owner
  90. char = Character
  91. hum = Character.Humanoid
  92. Torso = Character.Torso
  93. Head = Character.Head
  94.  
  95. hum.MaxHealth = math.huge
  96. hum.Health = math.huge
  97.  
  98.  
  99. for i,v in pairs(char:children()) do
  100. if v:IsA("Hat") then
  101. v:Destroy()
  102. end
  103. end
  104. for i,v in pairs(char:children()) do
  105. if v:IsA("Accessory") then
  106. v:Destroy()
  107. end
  108. end
  109. for i,v in pairs(char:children()) do
  110. if v:IsA("Hair") then
  111. v:Destroy()
  112. end
  113. end
  114. --141378828
  115. Reaper = Instance.new("Model")
  116. Reaper.Parent = Player.Character
  117. Reaper.Name = "Reaper"
  118. rh = Instance.new("Part")
  119. rh.Parent = Reaper
  120. rh.BrickColor = BrickColor.new("Really red")
  121. rh.Locked = true
  122. rh.CanCollide = false
  123. mesh = Instance.new("SpecialMesh")
  124. rh.formFactor = "Symmetric"
  125. mesh.MeshType = "FileMesh"
  126. mesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
  127. mesh.TextureId = "http://www.roblox.com/asset/?id=1081380"
  128. mesh.Parent = rh
  129. local weld = Instance.new("Weld")
  130. weld.Parent = rh
  131. rh.Transparency = 0
  132. weld.Part0 = rh
  133. weld.Part1 = Player.Character.Head
  134. weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
  135.  
  136. local s = Instance.new("Sound",char)
  137. s.SoundId = "http://www.roblox.com/asset/?id=2532772005"
  138. s.Pitch = 1
  139. s.Volume = 200
  140. s.Looped = true
  141. wait(1)
  142. s:play()
  143.  
  144.  
  145. function sandbox(var,func)
  146. local env = getfenv(func)
  147. local newenv = setmetatable({},{
  148. __index = function(self,k)
  149. if k=="script" then
  150. return var
  151. else
  152. return env[k]
  153. end
  154. end,
  155. })
  156. setfenv(func,newenv)
  157. return func
  158. end
  159. cors = {}
  160. mas = Instance.new("Model",game:GetService("Lighting"))
  161. Tool0 = Instance.new("Tool")
  162. Part1 = Instance.new("Part")
  163. SpecialMesh2 = Instance.new("SpecialMesh")
  164. Script3 = Instance.new("Script")
  165. Tool0.Name = "Arrest"
  166. Tool0.Parent = mas
  167. Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  168. Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  169. Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  170. Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  171. Tool0.ToolTip = "Take those skids to gulag!"
  172. Tool0.CanBeDropped = false
  173. Part1.Name = "Handle"
  174. Part1.Parent = Tool0
  175. Part1.FormFactor = Enum.FormFactor.Custom
  176. Part1.Size = Vector3.new(2, 2, 2)
  177. Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  178. Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  179. SpecialMesh2.Parent = Part1
  180. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  181. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  182. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  183. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  184. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  185. Script3.Parent = Part1
  186. debounce = false
  187.  
  188. game.Workspace.YesIAmThough.Humanoid.WalkSpeed = 50
  189.  
  190. table.insert(cors,sandbox(Script3,function()
  191. function arrest(hit)
  192. if hit.Parent ~= nil and hit.Parent:FindFirstChild("Head") ~= nil and hit.Parent.Name ~= game.Workspace.Name and debounce ~= true and hit.Parent.Head:FindFirstChild("ArrestedGui") == nil then
  193. debounce = true
  194. num = math.random(1,99)
  195. local message = Instance.new("Hint",workspace)
  196. message.Text = hit.Parent.Name.." Has been arrested by "..game.Workspace.Name.."! He or she has to spend "..num.." years in jail!"
  197. --hit.Parent:Destroy()
  198.  
  199. hit.Parent.Humanoid.MaxHealth = math.huge
  200. print("Godded!")
  201. a = Instance.new("ForceField", hit.Parent)
  202. a.Visible = false
  203. print("FFed!")
  204.  
  205. local SOUND = Instance.new("Sound", script.Parent)
  206. SOUND.SoundId = "rbxassetid://460919688"
  207. SOUND.Volume = 10
  208. SOUND:Play()
  209. BillboardGui0 = Instance.new("BillboardGui")
  210. TextLabel1 = Instance.new("TextLabel")
  211. BillboardGui0.Name = "ArrestedGui"
  212. BillboardGui0.Parent = hit.Parent.Head
  213. BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  214. BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  215. TextLabel1.Name = "Text"
  216. TextLabel1.Parent = BillboardGui0
  217. TextLabel1.Transparency = 1
  218. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  219. TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
  220. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  221. TextLabel1.BackgroundTransparency = 1
  222. TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  223. TextLabel1.Font = Enum.Font.ArialBold
  224. TextLabel1.FontSize = Enum.FontSize.Size48
  225. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  226. TextLabel1.TextScaled = true
  227. TextLabel1.TextStrokeTransparency = 0
  228. TextLabel1.TextWrapped = true
  229. TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  230. game:GetService("Debris"):AddItem(SOUND,5)
  231. game:GetService("Debris"):AddItem(message,5)
  232. hit.Parent.Humanoid:Destroy()
  233. --jailtime(hit.Parent)
  234. wait(3)
  235. debounce = false
  236. end
  237.  
  238. end
  239.  
  240.  
  241. function jailtime(char)
  242. for i = num, 0, -1 do
  243. wait(1)
  244. TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
  245. end
  246.  
  247. char.Humanoid.MaxHealth = 100
  248. print("Godded!")
  249. char.ForceField:Destroy()
  250. print("UNFFed!")
  251.  
  252. char.Humanoid.PlatformStand = false
  253.  
  254. BillboardGui0:Destroy()
  255. end
  256.  
  257. script.Parent.Touched:connect(arrest)
  258. end))
  259. for i,v in pairs(mas:GetChildren()) do
  260. v.Parent = owner.Backpack
  261. pcall(function() v:MakeJoints() end)
  262. end
  263. mas:Destroy()
  264. for i,v in pairs(cors) do
  265. spawn(function()
  266. pcall(v)
  267. end)
  268. end
Advertisement
Add Comment
Please, Sign In to add comment