Advertisement
cubanmixed2

Fe Cop

Apr 11th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7. Character = game.Players.LocalPlayer.Character
  8. Player = game.Players.LocalPlayer
  9. char = Character
  10. hum = Character.Humanoid
  11. Torso = Character.Torso
  12. Head = Character.Head
  13.  
  14. char.Shirt.ShirtTemplate = "rbxassetid://1073211165"
  15. char.Pants.PantsTemplate = "rbxassetid://997496591"
  16.  
  17.  
  18. local BC = char["Body Colors"]
  19. BC.HeadColor = BrickColor.new("Pastel brown")
  20. BC.LeftArmColor = BrickColor.new("Pastel brown")
  21. BC.LeftLegColor = BrickColor.new("Pastel brown")
  22. BC.RightArmColor = BrickColor.new("Pastel brown")
  23. BC.RightLegColor = BrickColor.new("Pastel brown")
  24. BC.TorsoColor = BrickColor.new("Pastel brown")
  25.  
  26. char.Head.face.Texture = "rbxassetid://42070872"
  27.  
  28. hum.MaxHealth = math.huge
  29.  
  30.  
  31.  
  32.  
  33. for i,v in pairs(char:children()) do
  34. if v:IsA("Hat") then
  35. v:Destroy()
  36. end
  37. end
  38. for i,v in pairs(char:children()) do
  39. if v:IsA("Accessory") then
  40. v:Destroy()
  41. end
  42. end
  43. for i,v in pairs(char:children()) do
  44. if v:IsA("Hair") then
  45. v:Destroy()
  46. end
  47. end
  48. --141378828
  49. Reaper = Instance.new("Model")
  50. Reaper.Parent = Player.Character
  51. Reaper.Name = "Reaper"
  52. rh = Instance.new("Part")
  53. rh.Parent = Reaper
  54. rh.BrickColor = BrickColor.new("Really red")
  55. rh.Locked = true
  56. rh.CanCollide = false
  57. mesh = Instance.new("SpecialMesh")
  58. rh.formFactor = "Symmetric"
  59. mesh.MeshType = "FileMesh"
  60. mesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
  61. mesh.TextureId = "http://www.roblox.com/asset/?id=1081380"
  62. mesh.Parent = rh
  63. local weld = Instance.new("Weld")
  64. weld.Parent = rh
  65. rh.Transparency = 0
  66. weld.Part0 = rh
  67. weld.Part1 = Player.Character.Head
  68. weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
  69.  
  70. local s = Instance.new("Sound",char)
  71. s.SoundId = "http://www.roblox.com/asset/?id=458157165"
  72. s.Pitch = 1
  73. s.Volume = 2
  74. s.Looped = true
  75. wait(1)
  76. s:play()
  77.  
  78.  
  79. function sandbox(var,func)
  80. local env = getfenv(func)
  81. local newenv = setmetatable({},{
  82. __index = function(self,k)
  83. if k=="script" then
  84. return var
  85. else
  86. return env[k]
  87. end
  88. end,
  89. })
  90. setfenv(func,newenv)
  91. return func
  92. end
  93. cors = {}
  94. mas = Instance.new("Model",game:GetService("Lighting"))
  95. Tool0 = Instance.new("Tool")
  96. Part1 = Instance.new("Part")
  97. SpecialMesh2 = Instance.new("SpecialMesh")
  98. Script3 = Instance.new("Script")
  99. Tool0.Name = "Arrest"
  100. Tool0.Parent = mas
  101. Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  102. Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  103. Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  104. Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  105. Tool0.ToolTip = "Take those skids to gulag!"
  106. Tool0.CanBeDropped = false
  107. Part1.Name = "Handle"
  108. Part1.Parent = Tool0
  109. Part1.FormFactor = Enum.FormFactor.Custom
  110. Part1.Size = Vector3.new(2, 2, 2)
  111. Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  112. Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  113. SpecialMesh2.Parent = Part1
  114. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  115. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  116. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  117. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  118. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  119. Script3.Parent = Part1
  120. debounce = false
  121.  
  122. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  123.  
  124. table.insert(cors,sandbox(Script3,function()
  125. function arrest(hit)
  126. 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
  127. debounce = true
  128. num = math.random(1,99)
  129. local message = Instance.new("Hint",workspace)
  130. message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
  131. --hit.Parent:Destroy()
  132.  
  133. hit.Parent.Humanoid.MaxHealth = math.huge
  134. print("Godded!")
  135. a = Instance.new("ForceField", hit.Parent)
  136. a.Visible = false
  137. print("FFed!")
  138.  
  139. local SOUND = Instance.new("Sound", script.Parent)
  140. SOUND.SoundId = "rbxassetid://460919688"
  141. SOUND.Volume = 10
  142. SOUND:Play()
  143. BillboardGui0 = Instance.new("BillboardGui")
  144. TextLabel1 = Instance.new("TextLabel")
  145. BillboardGui0.Name = "ArrestedGui"
  146. BillboardGui0.Parent = hit.Parent.Head
  147. BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  148. BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  149. TextLabel1.Name = "Text"
  150. TextLabel1.Parent = BillboardGui0
  151. TextLabel1.Transparency = 1
  152. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  153. TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
  154. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  155. TextLabel1.BackgroundTransparency = 1
  156. TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  157. TextLabel1.Font = Enum.Font.ArialBold
  158. TextLabel1.FontSize = Enum.FontSize.Size48
  159. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  160. TextLabel1.TextScaled = true
  161. TextLabel1.TextStrokeTransparency = 0
  162. TextLabel1.TextWrapped = true
  163. TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  164. game:GetService("Debris"):AddItem(SOUND,5)
  165. game:GetService("Debris"):AddItem(message,5)
  166. hit.Parent.Humanoid:Destroy()
  167. --jailtime(hit.Parent)
  168. wait(3)
  169. debounce = false
  170. end
  171.  
  172. end
  173.  
  174.  
  175. function jailtime(char)
  176. for i = num, 0, -1 do
  177. wait(1)
  178. TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
  179. end
  180.  
  181. char.Humanoid.MaxHealth = 100
  182. print("Godded!")
  183. char.ForceField:Destroy()
  184. print("UNFFed!")
  185.  
  186. char.Humanoid.PlatformStand = false
  187.  
  188. BillboardGui0:Destroy()
  189. end
  190.  
  191. script.Parent.Touched:connect(arrest)
  192. end))
  193. for i,v in pairs(mas:GetChildren()) do
  194. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  195. pcall(function() v:MakeJoints() end)
  196. end
  197. mas:Destroy()
  198. for i,v in pairs(cors) do
  199. spawn(function()
  200. pcall(v)
  201. end)
  202. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement