Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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 warn'inspired by skinny giant one eyed monster script that allows you to eat people'
- player = game.Players.LocalPlayer
- chr = player.Character
- mouse = player:GetMouse()
- local target = nil
- scl = 2
- local Head = chr['Head']
- local Torso = chr['Torso']
- local LA = chr['Left Arm']
- local RA = chr['Right Arm']
- local LL = chr['Left Leg']
- local RL = chr['Right Leg']
- local HRP = chr['HumanoidRootPart']
- wait(0.1)
- Head.formFactor = 3
- Torso.formFactor = 3
- LA.formFactor = 3
- RA.formFactor = 3
- LL.formFactor = 3
- RL.formFactor = 3
- HRP.formFactor = 3
- Head.Size = Vector3.new(scl * 2, scl, scl)
- Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
- LA.Size = Vector3.new(scl, scl * 2, scl)
- RA.Size = Vector3.new(scl, scl * 2, scl)
- LL.Size = Vector3.new(scl, scl * 2, scl)
- RL.Size = Vector3.new(scl, scl * 2, scl)
- HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
- local Motor1 = Instance.new('Motor6D', Torso)
- Motor1.Part0 = Torso
- Motor1.Part1 = Head
- Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.Name = "Neck"
- local Motor2 = Instance.new('Motor6D', Torso)
- Motor2.Part0 = Torso
- Motor2.Part1 = LA
- Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.Name = "Left Shoulder"
- local Motor3 = Instance.new('Motor6D', Torso)
- Motor3.Part0 = Torso
- Motor3.Part1 = RA
- Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.Name = "Right Shoulder"
- local Motor4 = Instance.new('Motor6D', Torso)
- Motor4.Part0 = Torso
- Motor4.Part1 = LL
- Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.Name = "Left Hip"
- local Motor5 = Instance.new('Motor6D', Torso)
- Motor5.Part0 = Torso
- Motor5.Part1 = RL
- Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.Name = "Right Hip"
- local Motor6 = Instance.new('Motor6D', HRP)
- Motor6.Part0 = HRP
- Motor6.Part1 = Torso
- Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- function lerp(weld,startpos,endpos,amntime,longatend)
- local waited = 0
- for i=1,amntime*100 do
- if longatend == true then
- startpos = weld.C0
- end
- weld.C0 = startpos:lerp(endpos,i/(amntime*100))
- wait(0.01)
- waited=waited+0.01
- end
- end
- swinging = false
- working = false
- char = chr
- Part0 = char.Head
- char.Humanoid.WalkSpeed = 16 * 2
- function katanaswing()
- working = true
- pcall(function()
- local rweld = Instance.new("Weld", char["Right Arm"])
- rweld.Part0 = char["Torso"]
- rweld.Part1 = char["Right Arm"]
- rweld.C0 = CFrame.new(1.5, 0, 0)
- swinging = true
- lerp(rweld,rweld.C0,CFrame.new(1.8,1.1,-2) * CFrame.Angles(math.rad(126),math.rad(4),math.rad(-45)),0.04)
- wait(0.2)
- target.Humanoid.BreakJointsOnDeath = false
- for i,v in pairs(target:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- if v.Name ~= "Head" and v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
- v.Parent = nil
- end
- end
- end
- for i,v in pairs(target:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- weld = Instance.new("Weld",target)
- weld.Part0 = Torso
- weld.Part1 = v
- v.Parent.Head:ClearAllChildren()
- v.Transparency = 1
- end
- end
- for i,v in pairs(target:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:FindFirstChild("Handle"):ClearAllChildren()
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- target.Head:ClearAllChildren()
- target.Head.Transparency = 1
- if char:FindFirstChild("weldok") then
- char:FindFirstChild("weldok").Part0 = nil
- char:FindFirstChild("weldok").Part1 = nil
- char:FindFirstChild("weldok").Parent = nil
- end
- oof = Instance.new("Sound",Part0)
- oof.SoundId = "rbxassetid://429400881"
- oof.Volume = 10
- oof:Play()
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter1 = Instance.new("ParticleEmitter")
- ParticleEmitter2 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Blood"
- ParticleEmitter0.Parent = Part0
- ParticleEmitter0.Speed = NumberRange.new(5, 10)
- ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
- ParticleEmitter0.LightEmission = 0.40000000596046
- ParticleEmitter0.LightInfluence = 1
- ParticleEmitter0.Texture = "rbxassetid://73547327"
- ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
- ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
- ParticleEmitter0.Rate = 10000000
- ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter0.VelocitySpread = 360
- ParticleEmitter1.Name = "Blood2"
- ParticleEmitter1.Parent = Part0
- ParticleEmitter1.Speed = NumberRange.new(5, 14)
- ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
- ParticleEmitter1.LightEmission = 0.20000000298023
- ParticleEmitter1.LightInfluence = 1
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
- ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter1.ZOffset = 1
- ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
- ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
- ParticleEmitter1.Rate = 100000
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Name = "Blood3"
- ParticleEmitter2.Parent = Part0
- ParticleEmitter2.Speed = NumberRange.new(3, 7)
- ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
- ParticleEmitter2.LightEmission = 0.20000000298023
- ParticleEmitter2.LightInfluence = 1
- ParticleEmitter2.Texture = "rbxassetid://241779220"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
- ParticleEmitter2.ZOffset = 0.5
- ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
- ParticleEmitter2.Rate = 3000
- ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- wait(0.3)
- for i,v in pairs(Part0:GetChildren()) do
- if v.ClassName == "ParticleEmitter" then
- v.Enabled = false
- end
- end
- swinging = false
- lerp(rweld,rweld.C0,CFrame.new(2.5, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)),0.08)
- rweld:Destroy()
- end)
- working = false
- target = nil
- end
- function ragdollkill(character)
- local victimshumanoid = character:findFirstChildOfClass("Humanoid")
- local checkragd = character:findFirstChild("ragded")
- if not checkragd then
- local boolvalue = Instance.new("BoolValue", character)
- boolvalue.Name = "ragded"
- if not character:findFirstChild("UpperTorso") then
- local ragdollmodel = Instance.new("Model", workspace)
- ragdollmodel.Name = character.Name
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdollright = character:Clone()
- local ragdollleft = character:Clone()
- weldo = Instance.new("Weld",char)
- weldo.Name = "weldok"
- weldo.Part0 = char["Right Arm"]
- weldo.Part1 = ragdollright.Torso
- weldo.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
- weldo3 = Instance.new("Weld",char)
- weldo3.Name = "weldok"
- weldo3.Part0 = char["Left Arm"]
- weldo3.Part1 = ragdollleft.Torso
- weldo3.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
- coroutine.resume(coroutine.create(function()
- wait(0.4)
- weldo:Destroy()
- weldo3:Destroy()
- end))
- for i,v in pairs(ragdollright:GetDescendants()) do
- if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
- v:destroy()
- end
- end
- ragdollright:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
- ragdollright:findFirstChildOfClass("Humanoid").Health = 0
- if ragdollright:findFirstChild("Health") then
- if ragdollright:findFirstChild("Health").ClassName == "Script" then
- ragdollright:findFirstChild("Health").Disabled = true
- end
- end
- --
- for i,v in pairs(ragdollleft:GetDescendants()) do
- if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
- v:destroy()
- end
- end
- ragdollleft:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
- ragdollleft:findFirstChildOfClass("Humanoid").Health = 0
- if ragdollleft:findFirstChild("Health") then
- if ragdollleft:findFirstChild("Health").ClassName == "Script" then
- ragdollright:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdollright.Parent = ragdollmodel
- ragdollleft.Parent = ragdollmodel
- --
- ragdollleft.Torso.Transparency = 0.01
- ragdollright.Torso.Transparency = 0.01
- if ragdollleft:findFirstChild("HumanoidRootPart") then
- ragdollleft:findFirstChild("HumanoidRootPart").Transparency = 1
- end
- --
- local leftinvisible = Instance.new("Part", ragdollmodel)
- leftinvisible.Size = Vector3.new(1.1,2.1,1.1)
- leftinvisible.Material = "Glass"
- leftinvisible.CanCollide = false
- leftinvisible.Transparency = 0.999
- local leftweld = Instance.new("Weld", leftinvisible)
- leftweld.Part0 = ragdollleft.Torso
- leftweld.Part1 = leftinvisible
- leftweld.C0 = CFrame.new(0.5,0,0)
- local leftred = Instance.new("Part", ragdollleft.Torso)
- leftred.Size = Vector3.new(0.925,1.925,0.925)
- leftred.Material = "Pebble"
- leftred.CanCollide = false
- leftred.BrickColor = BrickColor.new("Maroon")
- local leftredweld = Instance.new("Weld", leftred)
- leftredweld.Part0 = ragdollleft.Torso
- leftredweld.Part1 = leftred
- leftredweld.C0 = CFrame.new(-0.5,0,0)
- --
- local rightinvisible = Instance.new("Part", ragdollmodel)
- rightinvisible.Size = Vector3.new(1.1,2.1,1.1)
- rightinvisible.Material = "Glass"
- rightinvisible.CanCollide = false
- rightinvisible.Transparency = 0.999
- local rightweld = Instance.new("Weld", rightinvisible)
- rightweld.Part0 = ragdollright.Torso
- rightweld.Part1 = rightinvisible
- rightweld.C0 = CFrame.new(-0.5,0,0)
- local rightred = Instance.new("Part", ragdollright.Torso)
- rightred.Size = Vector3.new(0.925,1.925,0.925)
- rightred.Material = "Pebble"
- rightred.CanCollide = false
- rightred.BrickColor = BrickColor.new("Maroon")
- local rightredweld = Instance.new("Weld", rightred)
- rightredweld.Part0 = ragdollright.Torso
- rightredweld.Part1 = rightred
- rightredweld.C0 = CFrame.new(0.5,0,0)
- --
- if ragdollleft:findFirstChild("Right Arm") then
- ragdollleft["Right Arm"]:destroy()
- end
- coroutine.resume(coroutine.create(function()
- oof = Instance.new("Sound",ragdollleft.Torso)
- oof.SoundId = "rbxassetid://429400881"
- oof.Volume = 10
- oof:Play()
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter1 = Instance.new("ParticleEmitter")
- ParticleEmitter2 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Blood"
- ParticleEmitter0.Parent = ragdollleft.Torso
- ParticleEmitter0.Speed = NumberRange.new(5, 10)
- ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
- ParticleEmitter0.LightEmission = 0.40000000596046
- ParticleEmitter0.LightInfluence = 1
- ParticleEmitter0.Texture = "rbxassetid://73547327"
- ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
- ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
- ParticleEmitter0.Rate = 10000000
- ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter0.VelocitySpread = 360
- ParticleEmitter1.Name = "Blood2"
- ParticleEmitter1.Parent = ragdollleft.Torso
- ParticleEmitter1.Speed = NumberRange.new(5, 14)
- ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
- ParticleEmitter1.LightEmission = 0.20000000298023
- ParticleEmitter1.LightInfluence = 1
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
- ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter1.ZOffset = 1
- ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
- ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
- ParticleEmitter1.Rate = 100000
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Name = "Blood3"
- ParticleEmitter2.Parent = ragdollleft.Torso
- ParticleEmitter2.Speed = NumberRange.new(3, 7)
- ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
- ParticleEmitter2.LightEmission = 0.20000000298023
- ParticleEmitter2.LightInfluence = 1
- ParticleEmitter2.Texture = "rbxassetid://241779220"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
- ParticleEmitter2.ZOffset = 0.5
- ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
- ParticleEmitter2.Rate = 3000
- ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- wait(0.3)
- for i,v in pairs(ragdollleft.Torso:GetChildren()) do
- if v.ClassName == "ParticleEmitter" then
- v.Enabled = false
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- oof = Instance.new("Sound",ragdollright.Torso)
- oof.SoundId = "rbxassetid://429400881"
- oof.Volume = 10
- oof:Play()
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter1 = Instance.new("ParticleEmitter")
- ParticleEmitter2 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Blood"
- ParticleEmitter0.Parent = ragdollright.Torso
- ParticleEmitter0.Speed = NumberRange.new(5, 10)
- ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
- ParticleEmitter0.LightEmission = 0.40000000596046
- ParticleEmitter0.LightInfluence = 1
- ParticleEmitter0.Texture = "rbxassetid://73547327"
- ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
- ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
- ParticleEmitter0.Rate = 10000000
- ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter0.VelocitySpread = 360
- ParticleEmitter1.Name = "Blood2"
- ParticleEmitter1.Parent = ragdollright.Torso
- ParticleEmitter1.Speed = NumberRange.new(5, 14)
- ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
- ParticleEmitter1.LightEmission = 0.20000000298023
- ParticleEmitter1.LightInfluence = 1
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
- ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter1.ZOffset = 1
- ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
- ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
- ParticleEmitter1.Rate = 100000
- ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter1.VelocitySpread = 360
- ParticleEmitter2.Name = "Blood3"
- ParticleEmitter2.Parent = ragdollright.Torso
- ParticleEmitter2.Speed = NumberRange.new(3, 7)
- ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
- ParticleEmitter2.LightEmission = 0.20000000298023
- ParticleEmitter2.LightInfluence = 1
- ParticleEmitter2.Texture = "rbxassetid://241779220"
- ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
- ParticleEmitter2.ZOffset = 0.5
- ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
- ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
- ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
- ParticleEmitter2.Rate = 3000
- ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
- ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
- ParticleEmitter2.VelocitySpread = 360
- wait(0.3)
- for i,v in pairs(ragdollright.Torso:GetChildren()) do
- if v.ClassName == "ParticleEmitter" then
- v.Enabled = false
- end
- end
- end))
- if ragdollright:findFirstChild("Right Arm") then
- local glue = Instance.new("Glue", ragdollright.Torso)
- glue.Part0 = ragdollright.Torso
- glue.Part1 = ragdollright:findFirstChild("Right Arm")
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local limbcollider = Instance.new("Part", ragdollright:findFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdollright:findFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdollright:findFirstChild("Left Arm") then
- ragdollright["Left Arm"]:destroy()
- end
- if ragdollleft:findFirstChild("Left Arm") then
- local glue = Instance.new("Glue", ragdollleft.Torso)
- glue.Part0 = ragdollleft.Torso
- glue.Part1 = ragdollleft:findFirstChild("Left Arm")
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdollleft:findFirstChild("Left Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdollleft:findFirstChild("Left Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdollright:findFirstChild("Left Leg") then
- ragdollright["Left Leg"]:destroy()
- end
- if ragdollleft:findFirstChild("Left Leg") then
- local glue = Instance.new("Glue", ragdollleft.Torso)
- glue.Part0 = ragdollleft.Torso
- glue.Part1 = ragdollleft:findFirstChild("Left Leg")
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdollleft:findFirstChild("Left Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdollleft:findFirstChild("Left Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdollleft:findFirstChild("Right Leg") then
- ragdollleft["Right Leg"]:destroy()
- end
- if ragdollright:findFirstChild("Right Leg") then
- local glue = Instance.new("Glue", ragdollright.Torso)
- glue.Part0 = ragdollright.Torso
- glue.Part1 = ragdollright:findFirstChild("Right Leg")
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local limbcollider = Instance.new("Part", ragdollright:findFirstChild("Right Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdollright:findFirstChild("Right Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdollleft:findFirstChild("Head") then
- ragdollleft["Head"]:destroy()
- end
- if ragdollright:findFirstChild("Head") and ragdollright.Torso:findFirstChild("NeckAttachment") then
- local HeadAttachment = Instance.new("Attachment", ragdollright["Head"])
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- local connection = Instance.new('HingeConstraint', ragdollright["Head"])
- connection.LimitsEnabled = true
- connection.Attachment0 = ragdollright.Torso.NeckAttachment
- connection.Attachment1 = HeadAttachment
- connection.UpperAngle = 60
- connection.LowerAngle = -60
- elseif ragdollright:findFirstChild("Head") and not ragdollright.Torso:findFirstChild("NeckAttachment") then
- local hedweld = Instance.new("Weld", ragdollright.Torso)
- hedweld.Part0 = ragdollright.Torso
- hedweld.Part1 = ragdollright.Head
- hedweld.C0 = CFrame.new(0,1.5,0)
- end
- local function aaaalol()
- wait(0.2)
- local function searchforvelocity(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforvelocity(v)
- if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- end
- end
- searchforvelocity(ragdollleft)
- searchforvelocity(ragdollright)
- wait(0.5)
- if ragdollleft:findFirstChildOfClass("Humanoid") then
- ragdollleft:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- if ragdollleft:findFirstChild("HumanoidRootPart") then
- ragdollleft:findFirstChild("HumanoidRootPart"):destroy()
- end
- if ragdollright:findFirstChildOfClass("Humanoid") then
- ragdollright:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- if ragdollright:findFirstChild("HumanoidRootPart") then
- ragdollright:findFirstChild("HumanoidRootPart"):destroy()
- end
- end
- spawn(aaaalol)
- elseif character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
- for i,v in pairs(ragdoll:GetDescendants()) do
- if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
- v:destroy()
- end
- end
- ragdoll:BreakJoints()
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" or w.ClassName == "MeshPart" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
- Humanoid.PlatformStand = true
- local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
- local connection = Instance.new('BallSocketConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
- local connection = Instance.new('HingeConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
- makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
- end
- makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
- makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
- for i,v in pairs(Humanoid.Parent:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(Humanoid.Parent:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- for i,v in pairs(ragdoll:GetChildren()) do
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
- w:destroy()
- end
- end
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll.HumanoidRootPart:destroy()
- end
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- local function waitfordatmoment()
- wait(0.2)
- local function searchforvelocity(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforvelocity(v)
- if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- end
- end
- searchforvelocity(ragdoll)
- end
- spawn(waitfordatmoment)
- end
- end
- end
- function half()
- working = true
- pcall(function()
- weldo.C0 = CFrame.new(0,-2,-0.5) * CFrame.Angles(-math.rad(90),0,0)
- local rweld = Instance.new("Weld", char["Right Arm"])
- rweld.Part0 = char["Torso"]
- rweld.Part1 = char["Right Arm"]
- rweld.C0 = CFrame.new(2.5, 0, 0)
- local lweld = Instance.new("Weld", char["Left Arm"])
- lweld.Part0 = char["Torso"]
- lweld.Part1 = char["Left Arm"]
- lweld.C0 = CFrame.new(-2.5, 0, 0)
- swinging = true
- lerp(rweld,rweld.C0, CFrame.new(2.5,1,-1) * CFrame.Angles(math.rad(90),0,0),0.25)
- lerp(lweld,lweld.C0, CFrame.new(-2.5,1,-1) * CFrame.Angles(math.rad(90),0,math.rad(45)),0.25)
- wait(0.2)
- ragdollkill(target)
- lerp(lweld,lweld.C0,CFrame.new(-2.5,1,-1) * CFrame.Angles(math.rad(90),0,-math.rad(45)),0.08)
- wait(0.4)
- rweld:Destroy()
- lweld:Destroy()
- end)
- working = false
- target = nil
- end
- doingthat = false
- char.Torso.Touched:Connect(function(part)
- if doingthat == true then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- if part.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 or part.Parent:FindFirstChild("RightUpperArm") then
- target = part.Parent
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- weldo = Instance.new("Weld",char)
- weldo.Name = "weldok"
- weldo.Part0 = char["Right Arm"]
- weldo.Part1 = part.Parent["RightUpperArm"]
- weldo.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
- else
- target = part.Parent
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- weldo = Instance.new("Weld",char)
- weldo.Name = "weldok"
- weldo.Part0 = char["Right Arm"]
- weldo.Part1 = part.Parent["Right Arm"]
- weldo.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
- end
- end
- end
- end)
- mouse.Button1Down:Connect(function()
- if target then
- katanaswing()
- wait(0.2)
- if char:FindFirstChild("weldok") then
- char:FindFirstChild("weldok").Part0 = nil
- char:FindFirstChild("weldok").Part1 = nil
- char:FindFirstChild("weldok").Parent = nil
- end
- else
- doingthat = true
- wait(0.5)
- doingthat = false
- end
- --de:Play()
- end)
- mouse.KeyDown:Connect(function(key)
- if key == "e" then
- if target then
- half()
- end
- end
- end)
Add Comment
Please, Sign In to add comment