Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- 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
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- ----i didn't made the arrest em original script i just add the avatar.
- Character = game.Players.von12222222.Character
- Player = game.Players.von12222222
- 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.von12222222.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.von12222222.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.von12222222.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").von12222222.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