Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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.
- Character = game.Players.LocalPlayer.Character
- Player = game.Players.LocalPlayer
- char = Character
- hum = Character.Humanoid
- Torso = Character.Torso
- Head = Character.Head
- char.Shirt.ShirtTemplate = "rbxassetid://1073211165"
- char.Pants.PantsTemplate = "rbxassetid://997496591"
- local BC = char["Body Colors"]
- BC.HeadColor = BrickColor.new("Pastel brown")
- BC.LeftArmColor = BrickColor.new("Pastel brown")
- BC.LeftLegColor = BrickColor.new("Pastel brown")
- BC.RightArmColor = BrickColor.new("Pastel brown")
- BC.RightLegColor = BrickColor.new("Pastel brown")
- BC.TorsoColor = BrickColor.new("Pastel brown")
- char.Head.face.Texture = "rbxassetid://42070872"
- hum.MaxHealth = math.huge
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(char:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(char:children()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- --141378828
- Reaper = Instance.new("Model")
- Reaper.Parent = Player.Character
- Reaper.Name = "Reaper"
- rh = Instance.new("Part")
- rh.Parent = Reaper
- rh.BrickColor = BrickColor.new("Really red")
- rh.Locked = true
- rh.CanCollide = false
- mesh = Instance.new("SpecialMesh")
- rh.formFactor = "Symmetric"
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
- mesh.TextureId = "http://www.roblox.com/asset/?id=1081380"
- mesh.Parent = rh
- local weld = Instance.new("Weld")
- weld.Parent = rh
- rh.Transparency = 0
- weld.Part0 = rh
- weld.Part1 = Player.Character.Head
- weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
- local s = Instance.new("Sound",char)
- s.SoundId = "http://www.roblox.com/asset/?id=458157165"
- s.Pitch = 1
- s.Volume = 2
- s.Looped = true
- wait(1)
- s:play()
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement