Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = owner
- local person = owner.Character
- -- Doesn't Work against advanced scripts
- -- Also thanks for 1k visits guys.
- -- CHLua
- if person ==nil then
- else
- if person:FindFirstChild("Part") then
- else
- local box = person:GetExtentsSize()
- local part = Instance.new("Part",person)
- part.Shape = "Ball"
- part.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part.CanCollide = false
- part.Transparency = .75
- part.BrickColor = BrickColor.new("Really red")
- part.Material = Enum.Material.Granite
- part.CFrame = person.HumanoidRootPart.CFrame
- local weld = Instance.new("WeldConstraint",part)
- weld.Part1 = part
- weld.Part0 = person.HumanoidRootPart
- local at = Instance.new("Attachment",part)
- at.Position = Vector3.new(0,part.Size.Y/2,0)
- local at1 = Instance.new("Attachment",part)
- at1.Position = Vector3.new(0,part.Size.Y/-2,0)
- local trail = Instance.new("Trail",part)
- trail.Attachment0 = at
- trail.Attachment1 = at1
- trail.Lifetime = 1
- trail.MinLength = 0
- trail.MaxLength = 10
- local at2 = Instance.new("Attachment",part)
- at2.Position = Vector3.new(part.Size.X/2,0,0)
- local at3 = Instance.new("Attachment",part)
- at3.Position = Vector3.new(part.Size.X/-2,0,0)
- local trail = Instance.new("Trail",part)
- trail.Attachment0 = at2
- trail.Attachment1 = at3
- trail.Lifetime = 1
- trail.MinLength = 0
- trail.MaxLength = 10
- if person.Humanoid.RigType=="R15" then
- local part1 = Instance.new("Part",person)
- part1.Shape = "Ball"
- part1.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part1.CanCollide = false
- part1.Transparency = 1
- part1.BrickColor = BrickColor.new("Cyan")
- part1.CFrame = person.UpperTorso.CFrame
- local weld = Instance.new("WeldConstraint",part1)
- weld.Part1 = part1
- weld.Part0 = person.UpperTorso
- end
- part.Touched:Connect(function(hit)
- if hit.Parent.Name==person.Name then
- else
- local head = hit.Parent:FindFirstChild("Head")
- local HRP = hit.Parent:FindFirstChild("HumanoidRootPart")
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.Health = 0
- elseif head then
- head:Destroy()
- elseif HRP then
- HRP:Destroy()
- elseif hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true) then
- if hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true).MeshType=="Head" then
- hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true):Destroy()
- end
- elseif hit.Parent:FindFirstChild("Humanoid") then
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- if humanoid.Health==0 then
- else
- part:Destroy()
- local part = Instance.new("Part",person)
- part.Shape = "Ball"
- part.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part.CanCollide = false
- part.Transparency = .75
- part.BrickColor = BrickColor.new("Cyan")
- part.CFrame = person.HumanoidRootPart.CFrame
- local weld = Instance.new("WeldConstraint",part)
- weld.Part1 = part
- weld.Part0 = person.HumanoidRootPart
- end
- end
- end
- end)
- if person.Humanoid.Health==0 then
- local part = Instance.new("Part",person)
- part.Shape = "Ball"
- part.Size = Vector3.new(box.Y*2,box.Y*2,box.Y*2)
- part.CanCollide = false
- part.Transparency = .75
- part.BrickColor = BrickColor.new("Cyan")
- part.CFrame = person.HumanoidRootPart.CFrame
- local weld = Instance.new("WeldConstraint",part)
- weld.Part1 = part
- weld.Part0 = person.HumanoidRootPart
- end
- end
- end
- local rope = Instance.new("RopeConstraint")
- if person.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- rope.Attachment0 = person.LeftHand.LeftGripAttachment
- elseif person.Humanoid.RigType==Enum.HumanoidRigType.R6 then
- local attachment2 = Instance.new("Attachment")
- attachment2.Position = Vector3.new(0,-1,0)
- attachment2.Parent = person["Left Arm"]
- rope.Attachment0 = attachment2
- end
- rope.Length = 20
- rope.Visible = true
- local part1 = Instance.new("Part")
- part1.Shape = "Ball"
- part1.Size = Vector3.new(4,4,4)
- part1.Material = Enum.Material.Granite
- part1.BrickColor = BrickColor.new("Really red")
- part1.Position = person.Head.Position
- part1.Massless = true
- local attachment = Instance.new("Attachment")
- attachment.Parent = part1
- part1.Parent = game.Workspace
- rope.Attachment1 = attachment
- rope.Parent = person
- local rope = Instance.new("RopeConstraint")
- if person.Humanoid.RigType==Enum.HumanoidRigType.R15 then
- rope.Attachment0 = person.RightHand.RightGripAttachment
- elseif person.Humanoid.RigType==Enum.HumanoidRigType.R6 then
- local attachment2 = Instance.new("Attachment")
- attachment2.Position = Vector3.new(0,-1,0)
- attachment2.Parent = person["Right Arm"]
- rope.Attachment0 = attachment2
- end
- rope.Length = 20
- rope.Visible = true
- local part2 = Instance.new("Part")
- part2.Shape = "Ball"
- part2.Size = Vector3.new(4,4,4)
- part2.Material = Enum.Material.Granite
- part2.BrickColor = BrickColor.new("Really red")
- part2.Position = person.Head.Position
- part2.Massless = true
- local attachment = Instance.new("Attachment")
- attachment.Parent = part2
- part2.Parent = game.Workspace
- rope.Attachment1 = attachment
- rope.Parent = person
- part2.Touched:Connect(function(hit)
- if hit.Parent.Name==person.Name then
- else
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- local head = hit.Parent:FindFirstChild("Head")
- local HRP = hit.Parent:FindFirstChild("HumanoidRootPart")
- if humanoid then
- humanoid.Health = 0
- elseif head then
- head:Destroy()
- elseif HRP then
- HRP:Destroy()
- elseif hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true) then
- if hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true).MeshType=="Head" then
- hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true):Destroy()
- end
- end
- end
- end)
- part1.Touched:Connect(function(hit)
- if hit.Parent.Name==person.Name then
- else
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- local head = hit.Parent:FindFirstChild("Head")
- local HRP = hit.Parent:FindFirstChild("HumanoidRootPart")
- if humanoid then
- humanoid.Health = 0
- elseif head then
- head:Destroy()
- elseif HRP then
- HRP:Destroy()
- elseif hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true) then
- if hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true).MeshType=="Head" then
- hit.Parent:FindFirstChildWhichIsA("SpecialMesh",true):Destroy()
- end
- end
- end
- end)
- if person.Name=="SoftlockedUnderZero" then
- local torso = person.UpperTorso
- local part3 = Instance.new("Part")
- local attachment2 = Instance.new("Attachment")
- part3.CanCollide = false
- attachment2.Position = Vector3.new(torso.Size.X*.25,torso.Size.Y*.15,torso.Size.Z*-.25)
- part3.Shape = "Ball"
- part3.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment2.Parent = torso
- part3.Position = attachment2.WorldPosition
- part3.Anchored = false
- part3.BrickColor = person["Body Colors"].TorsoColor
- part3.Parent = person
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part3
- weld.Parent = torso
- local part4 = Instance.new("Part")
- local attachment3 = Instance.new("Attachment")
- part4.CanCollide = false
- attachment3.Position = Vector3.new(torso.Size.X*-.25,torso.Size.Y*.15,torso.Size.Z*-.25)
- part4.Shape = "Ball"
- part4.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment3.Parent = torso
- part4.Position = attachment3.WorldPosition
- part4.Anchored = false
- part4.BrickColor = person["Body Colors"].TorsoColor
- part4.Parent = person
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part4
- weld.Parent = torso
- local part5 = Instance.new("Part")
- local attachment4 = Instance.new("Attachment")
- part5.CanCollide = false
- attachment4.Position = Vector3.new(0,torso.Size.Y*.15,torso.Size.Z*-.25)
- part5.Shape = "Cylinder"
- part5.Size = Vector3.new(torso.Size.X/2,torso.Size.X/2,torso.Size.X/2)
- attachment4.Parent = torso
- part5.Position = attachment4.WorldPosition
- part5.Orientation = torso.Orientation
- part5.Anchored = false
- part5.BrickColor = person["Body Colors"].TorsoColor
- part5.Parent = person
- local weld = Instance.new("WeldConstraint")
- weld.Part1 = torso
- weld.Part0 = part5
- weld.Parent = torso
- part3.TopSurface = "Smooth"
- part4.TopSurface = "Smooth"
- part5.TopSurface = "Smooth"
- part3.BottomSurface= "Smooth"
- part4.BottomSurface= "Smooth"
- part5.BottomSurface= "Smooth"
- end
- while true do
- person.Humanoid.Health = "inf"
- person.Humanoid.PlatformStand = false
- person.Humanoid.WalkSpeed = 200
- person.Humanoid.JumpPower = 200
- person.Humanoid.MaxHealth = "inf"
- wait(.25)
- end
- -- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement