Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14 (USE IT ON OWN RISK (BUG ALERT!))
- mouse = game.Players.LocalPlayer:GetMouse()
- attacking = false
- ragdolling = false
- function attacking(key)
- key = key:lower()
- if key == "q" then
- for i = 0,2 , 0.1 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.08),i)
- end
- wait(1)
- for i = 1,10 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.32)
- end
- local check = Instance.new("Part", game.Players.LocalPlayer.Character)
- check.Transparency = 1
- local weld = Instance.new("Weld" ,check)
- weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
- weld.Part1 = check
- weld.C0 = weld.C0 * CFrame.new(0,-0.5,0)
- check.CanCollide = false
- local function ragdoll(part)
- using = false
- hit = Instance.new("Sound", torso)
- hit.SoundId = "rbxassetid://260430060"
- hit.Volume = 5
- hit1 = Instance.new("Sound", torso)
- hit1.SoundId = "rbxassetid://138087186"
- hit1.Volume = 5
- hit2 = Instance.new("Sound", torso)
- hit2.SoundId = "rbxassetid://131237241"
- hit2.Volume = 5
- hit3 = Instance.new("Sound", torso)
- hit3.SoundId = "rbxassetid://278062209"
- hit3.Volume = 5
- hit3.TimePosition = 0.33
- if not ragdolling then
- ragdolling = true
- local humanoid = part.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.PlatformStand = true
- end
- local leftarm = part.Parent:findFirstChild("Left Arm")
- local rightrm = part.Parent:findFirstChild("Right Arm")
- local leftleg = part.Parent:findFirstChild("Left Leg")
- local rightleg = part.Parent:findFirstChild("Right Leg")
- torso = part.Parent:findFirstChild("Torso")
- if torso ~= nil then
- if leftleg ~= nil then
- local glue = Instance.new("Glue", torso)
- glue.Part0 = torso
- glue.Part1 = leftleg
- glue.Name = "Left leg"
- local collider = Instance.new("Part", leftleg)
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(0.7,1.8,0.7)
- local weld = Instance.new("Weld", collider)
- weld.Part0 = leftleg
- weld.Part1 = collider
- weld.C0 = weld.C0 * CFrame.new(0,0,0)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- 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)
- collider.Transparency = 1
- end
- ------------
- torso["Right Hip"]:destroy()
- if rightleg ~= nil then
- local glue1 = Instance.new("Glue", torso)
- glue1.Part0 = torso
- glue1.Part1 = rightleg
- glue1.Name = "Right leg"
- local collider1 = Instance.new("Part", rightleg)
- collider1.Position = Vector3.new(0,9999,0)
- collider1.Size = Vector3.new(0.7,1.8,0.7)
- local weld1 = Instance.new("Weld", collider1)
- weld1.Part0 = rightleg
- weld1.Part1 = collider1
- weld1.C0 = weld1.C0 * CFrame.new(0,0,0)
- collider1.TopSurface = "Smooth"
- collider1.BottomSurface = "Smooth"
- collider1.formFactor = "Symmetric"
- glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider1.Transparency = 1
- end
- ------------
- torso["Right Shoulder"]:destroy()
- if rightrm ~= nil then
- local glue11 = Instance.new("Glue", torso)
- glue11.Part0 = torso
- glue11.Part1 = rightrm
- glue11.Name = "Right shoulder"
- local collider11 = Instance.new("Part", rightrm)
- collider11.Position = Vector3.new(0,9999,0)
- collider11.Size = Vector3.new(0.7,1.8,0.7)
- local weld11 = Instance.new("Weld", collider11)
- weld11.Part0 = rightrm
- weld11.Part1 = collider11
- weld11.C0 = weld11.C0 * CFrame.new(0,0,0)
- collider11.TopSurface = "Smooth"
- collider11.BottomSurface = "Smooth"
- collider11.formFactor = "Symmetric"
- glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider11.Transparency = 1
- end
- ------------
- torso["Left Shoulder"]:destroy()
- if leftarm ~= nil then
- local glue111 = Instance.new("Glue", torso)
- glue111.Part0 = torso
- glue111.Part1 = leftarm
- glue111.Name = "Left shoulder"
- local collider111 = Instance.new("Part", leftarm)
- collider111.Position = Vector3.new(0,9999,0)
- collider111.Size = Vector3.new(0.7,1.8,0.7)
- local weld111 = Instance.new("Weld", collider111)
- weld111.Part0 = leftarm
- weld111.Part1 = collider111
- weld111.C0 = weld111.C0 * CFrame.new(0,0,0)
- collider111.TopSurface = "Smooth"
- collider111.BottomSurface = "Smooth"
- collider111.formFactor = "Symmetric"
- glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider111.Transparency = 1
- end
- end
- wait(0.5)
- local function touch()
- if not using then
- using = true
- local Math = math.random(1,4)
- if Math == 1 then
- hit:Play()
- end
- if Math == 2 then
- hit1:Play()
- end
- if Math == 3 then
- hit2:Play()
- end
- if Math == 4 then
- hit3:Play()
- end
- wait(0.5)
- using = false
- end
- end
- torso.Touched:connect(touch)
- ragdolling = false
- end
- end
- check.Touched:connect(ragdoll)
- wait(3)
- end
- attacking = false
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- end
- mouse.KeyDown:connect(attacking)
Add Comment
Please, Sign In to add comment