Advertisement
lafur

Untitled

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