Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This basicly uses damege or touch to damege a npc
- --[[I like using the nebula zorua character usually by my means is that, i usually like changing the character of whos is using the
- script lol, so good luck, also why am i always deleting this]]
- c = game.Players.LocalPlayer.Character:GetChildren()
- hit_ = true
- for i = 1, #c do
- if (c[i].className == "Accessory") then--adds the accesorys to your character
- c[i]:Destroy()
- end
- end
- c = game.Players.LocalPlayer.Character:GetChildren()
- for i = 1, #c do
- if (c[i].className == "Shirt") then--adds the accesorys to your character
- c[i]:Destroy()
- end
- end
- c = game.Players.LocalPlayer.Character:GetChildren()
- for i = 1, #c do
- if (c[i].className == "BodyColors") then--adds the accesorys to your character
- c[i]:Destroy()
- end
- end
- c = game.Players.LocalPlayer.Character:GetChildren()
- for i = 1, #c do
- if (c[i].className == "Pants") then--adds the accesorys to your character
- c[i]:Destroy()
- end
- end
- mas = game.Players.LocalPlayer.Character
- BodyColors0 = Instance.new("BodyColors")
- Pants1 = Instance.new("Pants")
- Shirt2 = Instance.new("Shirt")
- Accessory3 = Instance.new("Accessory")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Attachment6 = Instance.new("Attachment")
- Vector3Value7 = Instance.new("Vector3Value")
- BodyColors0.Parent = mas
- BodyColors0.HeadColor = BrickColor.new("Dark stone grey")
- BodyColors0.LeftArmColor = BrickColor.new("Dark stone grey")
- BodyColors0.LeftLegColor = BrickColor.new("Dark stone grey")
- BodyColors0.RightArmColor = BrickColor.new("Dark stone grey")
- BodyColors0.RightLegColor = BrickColor.new("Dark stone grey")
- BodyColors0.TorsoColor = BrickColor.new("Dark stone grey")
- Pants1.Name = "Pants"
- Pants1.Parent = mas
- Pants1.PantsTemplate = "http://www.roblox.com/asset/?id=1201270926"
- Shirt2.Name = "Shirt"
- Shirt2.Parent = mas
- Shirt2.ShirtTemplate = "http://www.roblox.com/asset/?id=1201269945"
- Accessory3.Name = "NeonPurpleAnimalHood"
- Accessory3.Parent = mas
- Accessory3.AttachmentPos = Vector3.new(0, -0.0299999993, 0.0500000007)
- Part4.Name = "Handle"
- Part4.Parent = Accessory3
- Part4.CanCollide = false
- Part4.FormFactor = Enum.FormFactor.Custom
- Part4.Size = Vector3.new(2.6000278, 2.20000005, 1.79999816)
- Part4.CFrame = CFrame.new(-8.10648615e-09, 5.02999926, -0.0497277565, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Position = Vector3.new(-8.10648615e-09, 5.02999926, -0.0497277565)
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=135446047 "
- SpecialMesh5.Scale = Vector3.new(1, 1.10000002, 1)
- SpecialMesh5.TextureId = "http://www.roblox.com/asset/?id=182773008 "
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- SpecialMesh5.Scale = Vector3.new(1, 1.10000002, 1)
- Attachment6.Name = "HatAttachment"
- Attachment6.Parent = Part4
- Attachment6.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Attachment6.CFrame = CFrame.new(8.65748007e-09, 0.0699996948, 0.0497277565, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Attachment6.Position = Vector3.new(8.65748007e-09, 0.0699996948, 0.0497277565)
- Attachment6.Axis = Vector3.new(1, -7.87137555e-09, 0)
- Attachment6.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Vector3Value7.Name = "OriginalSize"
- Vector3Value7.Parent = Part4
- Vector3Value7.Value = Vector3.new(2.6000278, 2.20000005, 1.79999816)
- FACE = mas.Head.face
- FACE.Texture = "rbxassetid://18151722"
- s2 = game.Players.LocalPlayer
- local humanoid = s2.Character.Humanoid
- local mouse = s2:GetMouse()
- local ff = Instance.new("ForceField")
- ff.Parent = s2.Character
- ff.Visible = false
- sick = Instance.new("Sound")
- sick.SoundId = "rbxassetid://502085625"
- sick.Volume = 1
- sick.Parent = s2.Character
- sick.Looped = true
- sick.Pitch = 1
- sick:Play()
- Torso = game.Players.LocalPlayer.Character.Torso
- Sound0 = Instance.new("Sound")
- Sound1 = Instance.new("Sound")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Part20 = Instance.new("Part")
- BillboardGui21 = Instance.new("BillboardGui")
- ImageLabel22 = Instance.new("ImageLabel")
- Sound0.Name = "DMG"
- Sound0.Parent = Torso
- Sound0.Pitch = 1.25
- Sound0.SoundId = "rbxassetid://138087186"
- Sound0.Volume = 1
- Sound1.Name = "DMG2"
- Sound1.Parent = Torso
- Sound1.SoundId = "rbxassetid://131237241"
- Sound1.Volume = 1
- Sound2.Name = "FinalFlash"
- Sound2.Parent = Torso
- Sound2.Pitch = 1.5
- Sound2.SoundId = "rbxassetid://161251144"
- Sound2.Volume = 1
- Sound3.Name = "Miss"
- Sound3.Parent = Torso
- Sound3.SoundId = "rbxassetid://174413237"
- Sound4.Name = "SaiyanEnergy"
- Sound4.Parent = Torso
- Sound4.Pitch = 6
- Sound4.SoundId = "rbxassetid://98333808"
- Sound4.Volume = 1
- Sound5.Name = "SaiyanEnergy2"
- Sound5.Parent = Torso
- Sound5.SoundId = "rbxassetid://491515754"
- Sound5.Volume = 1
- Sound5.Looped = true
- Sound6.Name = "Teleport"
- Sound6.Parent = Torso
- Sound6.Pitch = 2
- Sound6.SoundId = "rbxassetid://216782105"
- Sound6.Volume = 1
- Sound7.Name = "Voice1"
- Sound7.Parent = Torso
- Sound7.Pitch = 1.2000000476837
- Sound7.SoundId = "rbxassetid://159490394"
- Sound7.Volume = 1
- Sound8.Name = "Voice2"
- Sound8.Parent = Torso
- Sound8.Pitch = 0.30000001192093
- Sound8.SoundId = "rbxassetid://132236830"
- Sound8.Volume = 1
- Sound9.Name = "Voice3"
- Sound9.Parent = Torso
- Sound9.Pitch = 1.2000000476837
- Sound9.SoundId = "rbxassetid://190995007"
- Sound9.Volume = 1
- Sound10.Name = "Voice4"
- Sound10.Parent = Torso
- Sound10.Pitch = 6
- Sound10.SoundId = "rbxassetid://149576324"
- Sound10.Volume = 1
- s = game.Players.LocalPlayer.Character
- if s.Humanoid.Health > 0 then
- bd = s.HumanoidRootPart.RootJoint
- a1 = s.Torso:FindFirstChild("Left Shoulder")
- a2 = s.Torso:FindFirstChild("Right Shoulder")
- l1 = s.Torso:FindFirstChild("Left Hip")
- l2 = s.Torso:FindFirstChild("Right Hip")
- combo = false
- Tele = false
- transformed = false
- hits = 0
- end
- --[[Basic Stats]]
- attack = 12 --[[Combo Damage]]
- force = 340 --[[Energy Damage]]
- needed = 321988 --[[Hits for Special]]
- function HalfReset()
- if s.Humanoid.Health > 0 then
- bd.C0 = bd.C1 * CFrame.new(0,0,0)
- a1.C0 = a1.C1 * CFrame.new(0,0,1.5)
- a2.C0 = a2.C1 * CFrame.new(0,0,1.5)
- l1.C0 = l1.C1 * CFrame.new(0,-2,0.5)
- l2.C0 = l2.C1 * CFrame.new(0,-2,0.5)
- end
- end
- function FullReset()
- if s.Humanoid.Health > 0 then
- HalfReset()
- combo = false
- end
- end
- function Attack()
- if combo == false and s.Humanoid.Health > 0 then
- combo = true
- local audio = math.random(1,2) --[[Random Play]]
- if audio == 1 then s.Torso.Voice2:Play() s.Torso.Miss:Play() else s.Torso.Voice3:Play() s.Torso.Miss:Play() end
- for i = 1,5 do wait()
- a1.C0 = a1.C0 * CFrame.Angles(0,0,-0.32)
- a2.C0 = a2.C0 * CFrame.Angles(0,0,0.32)
- end
- for i = 1,5 do wait()
- bd.C0 = bd.C0 * CFrame.Angles(0,0,0.1)
- a2.C0 = a2.C0 * CFrame.Angles(0.2,0,0)
- end
- local audio = math.random(1,2) --[[Random Play]]
- if audio == 1 then s.Torso.Voice3:Play() s.Torso.Miss:Play() else s.Torso.Voice2:Play() s.Torso.Miss:Play() end
- for i = 1,5 do wait()
- bd.C0 = bd.C0 * CFrame.Angles(0,0,-0.2)
- a2.C0 = a2.C0 * CFrame.Angles(-0.3,0,0)
- end
- for i = 1,5 do wait()
- bd.C0 = bd.C0 * CFrame.Angles(0,0,0.2)
- a1.C0 = a1.C0 * CFrame.Angles(0.2,0,0)
- end
- for i = 1,5 do wait()
- bd.C0 = bd.C0 * CFrame.Angles(0,0,0.1)
- a1.C0 = a1.C0 * CFrame.Angles(-0.3,0,0)
- end
- local audio = math.random(1,2) --[[Random Play]]
- if audio == 1 then s.Torso.Miss:Play() else s.Torso.Miss:Play() end
- FullReset()
- end
- end
- function teleport()
- if Tele == false then
- Tele = true
- wait(0.05)
- s.Torso.Teleport:Play()
- local effect = game.ReplicatedStorage.TeleportEffect:clone()
- effect.Parent = s
- effect.CFrame = s.Torso.CFrame * CFrame.Angles(0,5,0)
- s.Torso.CFrame = s.Torso.CFrame * CFrame.new(0,0,-10)
- wait(0.6)
- effect:Destroy()
- Tele = false
- end
- end
- function Kamehameha()
- if s.Humanoid.Health > 0 then
- game:GetService("Chat"):Chat(s.Head,"Dark Flash!!",Enum.ChatColor.Red)
- s.Torso.Voice4:Play()
- local ball = Instance.new("Part")
- ball.BrickColor = BrickColor.new("Magenta")
- ball.Material = "Neon"
- ball.TopSurface = "Smooth"
- ball.BottomSurface = "Smooth"
- ball.FormFactor = "Custom"
- ball.Size = Vector3.new(10,10,10)
- ball.Transparency = 0
- ball.Anchored = true
- ball.CanCollide = false
- ball.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- ball2 = Instance.new("Part")
- ball2.BrickColor = BrickColor.new("Royal purple")
- ball2.Material = "Neon"
- ball2.TopSurface = "Smooth"
- ball2.BottomSurface = "Smooth"
- ball2.FormFactor = "Custom"
- ball2.Size = Vector3.new(15,15,15)
- ball2.Transparency = 0.5
- ball2.Anchored = true
- ball2.CanCollide = false
- ball2.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Sphere"
- mesh.Parent = ball
- local mesh2 = Instance.new("SpecialMesh")
- mesh2.MeshType = "Sphere"
- mesh2.Parent = ball2
- ball.Parent = game.Workspace
- ball2.Parent = game.Workspace
- a1.C0 = a1.C0 * CFrame.Angles(0,0,-1.6)
- a2.C0 = a2.C0 * CFrame.Angles(0,0,1.6)
- a1.C0 = a1.C0 * CFrame.Angles(1,0,0)
- a2.C0 = a2.C0 * CFrame.Angles(1,0,0)
- ball.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- ball2.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- s.Torso.FinalFlash:Play()
- local beam = Instance.new("Part")
- beam.BrickColor = BrickColor.new("Royal purple")
- beam.Material = "Neon"
- beam.TopSurface = "Smooth"
- beam.BottomSurface = "Smooth"
- beam.FormFactor = "Custom"
- beam.Size = Vector3.new(10,100,10)
- beam.Transparency = 0
- beam.Anchored = true
- beam.CanCollide = false
- beam.CFrame = s.Torso.CFrame * CFrame.new(0,1,-8)
- beam.CFrame = beam.CFrame * CFrame.Angles(1.6,0,0)
- beam2 = Instance.new("Part")
- beam2.BrickColor = BrickColor.new("Royal purple")
- beam2.Material = "Neon"
- beam2.TopSurface = "Smooth"
- beam2.BottomSurface = "Smooth"
- beam2.FormFactor = "Custom"
- beam2.Size = Vector3.new(15,100,15)
- beam2.Transparency = 0.5
- beam2.Anchored = true
- beam2.CanCollide = false
- beam2.CFrame = s.Torso.CFrame * CFrame.new(0,1,-8)
- beam2.CFrame = beam2.CFrame * CFrame.Angles(1.6,0,0)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Scale = Vector3.new(0.75,0.1,0.75)
- mesh.Parent = beam
- local mesh2 = Instance.new("SpecialMesh")
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(0.75,0.1,0.75)
- mesh2.Parent = beam2
- beam.Parent = game.Workspace
- beam2.Parent = game.Workspace
- function onTouched(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- if hits < needed and s.Humanoid.Health > 0 then
- local audio = math.random(1,2) --[[Random Play]]
- if audio == 1 then s.Torso.DMG:Play() else s.Torso.DMG2:Play() end
- h.Health = h.Health - attack
- hits = hits + 1
- Attack()
- else
- hits = 0
- end
- end
- end
- ball.Touched:connect(onTouched)
- ball2.Touched:connect(onTouched)
- beam.Touched:connect(onTouched)
- beam2.Touched:connect(onTouched)
- for i = 1,40 do wait()
- s.Humanoid.WalkSpeed = 0
- beam.CFrame = beam.CFrame * CFrame.new(0,-5,0)
- beam2.CFrame = beam2.CFrame * CFrame.new(0,-5,0)
- mesh.Scale = mesh.Scale + Vector3.new(0,0.1,0)
- mesh2.Scale = mesh2.Scale + Vector3.new(0,0.1,0)
- ball.Transparency = ball2.Transparency + 0.025
- ball2.Transparency = ball2.Transparency + 0.0125
- beam.Transparency = beam.Transparency + 0.025
- beam2.Transparency = beam2.Transparency + 0.0125
- end
- s.Humanoid.WalkSpeed = 16
- ball:Destroy()
- ball2:Destroy()
- beam:Destroy()
- beam2:Destroy()
- FullReset()
- end
- end
- function Kamehameha2()
- if s.Humanoid.Health > 0 then
- game:GetService("Chat"):Chat(s.Head,"Dark Flash!!",Enum.ChatColor.Red)
- s.Torso.Voice4:Play()
- local ball3 = Instance.new("Part")
- ball3.BrickColor = BrickColor.new("Magenta")
- ball3.Material = "Plastic"
- ball3.TopSurface = "Smooth"
- ball3.BottomSurface = "Smooth"
- ball3.FormFactor = "Custom"
- ball3.Size = Vector3.new(10,10,10)
- ball3.Transparency = 0
- ball3.Anchored = true
- ball3.CanCollide = false
- ball3.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- ball23 = Instance.new("Part")
- ball23.BrickColor = BrickColor.new("Royal purple")
- ball23.Material = "Plastic"
- ball23.TopSurface = "Smooth"
- ball23.BottomSurface = "Smooth"
- ball23.FormFactor = "Custom"
- ball23.Size = Vector3.new(15,15,15)
- ball23.Transparency = 0
- ball23.Anchored = true
- ball23.CanCollide = false
- ball23.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- local mesh3 = Instance.new("SpecialMesh")
- mesh3.MeshType = "Sphere"
- mesh3.Parent = ball3
- local mesh23 = Instance.new("SpecialMesh")
- mesh23.MeshType = "Sphere"
- mesh23.Parent = ball2
- ball3.Parent = game.Workspace
- ball2.Parent = game.Workspace
- a1.C0 = a1.C0 * CFrame.Angles(0,0,-1.6)
- a2.C0 = a2.C0 * CFrame.Angles(0,0,1.6)
- a1.C0 = a1.C0 * CFrame.Angles(1,0,0)
- a2.C0 = a2.C0 * CFrame.Angles(1,0,0)
- ball3.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- ball2.CFrame = s.Torso.CFrame * CFrame.new(0,0.7,-2.5)
- s.Torso.FinalFlash:Play()
- local beam3 = Instance.new("Part")
- beam3.BrickColor = BrickColor.new("Really red")
- beam3.Material = "Plastic"
- beam3.TopSurface = "Smooth"
- beam3.BottomSurface = "Smooth"
- beam3.FormFactor = "Custom"
- beam3.Size = Vector3.new(10,100,10)
- beam3.Transparency = 0
- beam3.Anchored = true
- beam3.CanCollide = false
- beam3.CFrame = s.Torso.CFrame * CFrame.new(0,1,-8)
- beam3.CFrame = beam.CFrame * CFrame.Angles(1.6,0,0)
- beam23 = Instance.new("Part")
- beam23.BrickColor = BrickColor.new("Really blue")
- beam23.Material = "Neon"
- beam23.TopSurface = "Smooth"
- beam23.BottomSurface = "Smooth"
- beam23.FormFactor = "Custom"
- beam23.Size = Vector3.new(15,100,15)
- beam23.Transparency = 0
- beam23.Anchored = true
- beam23.CanCollide = false
- beam23.CFrame = s.Torso.CFrame * CFrame.new(0,1,-8)
- beam23.CFrame = beam2.CFrame * CFrame.Angles(1.6,0,0)
- local mesh3 = Instance.new("SpecialMesh")
- mesh3.Scale = Vector3.new(2.75,2.1,2.75)
- mesh3.Parent = beam3
- local mesh23 = Instance.new("SpecialMesh")
- mesh23.Scale = Vector3.new(1.85,0.3,1.85)
- mesh23.Parent = beam2
- beam3.Parent = game.Workspace
- beam23.Parent = game.Workspace
- beam2.Touched:connect(function(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- local hax = h.Parent:FindFirstChild("ForceField")
- if hax == nil then
- h.Health = h.Health - 5
- h.Torso.CFrame = h.Torso.CFrame * CFrame.new(0,0,-2)
- wait()
- end
- end
- end)
- for i = 1,40 do wait()
- beam3.CFrame = beam3.CFrame * CFrame.new(0,-5,0)
- beam23.CFrame = beam2.CFrame * CFrame.new(0,-5,0)
- mesh3.Scale = mesh3.Scale - Vector3.new(0,0.1,0)
- mesh23.Scale = mesh23.Scale - Vector3.new(0,0.1,0)
- ball3.Transparency = ball3.Transparency - 0.925
- ball23.Transparency = ball23.Transparency - 0.00125
- beam3.Transparency = beam3.Transparency - 0.045
- beam23.Transparency = beam23.Transparency - 0.0925
- end
- ball3:Destroy()
- ball23:Destroy()
- beam3:Destroy()
- beam23:Destroy()
- FullReset()
- end
- end
- s.Humanoid.HealthChanged:connect(function()
- if s.Humanoid.Health < 70000 then
- attack = attack + 10
- force = force + 10
- s.Humanoid.Health = s.Humanoid.Health + 100
- end
- if transformed == false and s.Humanoid.Health <= 40000 then
- transformed = true
- game:GetService("Chat"):Chat(s.Head,"Im Dark Aura Anime",Enum.ChatColor.Red)
- s.Torso.Voice2:Play()
- s.Humanoid.Health = s.Humanoid.Health + 50000
- s.Torso.SaiyanEnergy:Play()
- FullReset()
- attack = attack + 13
- force = force + 20
- end
- if transformed == true and s.Humanoid.Health <= 20000 then
- game:GetService("Chat"):Chat(s.Head,"You have no chance againts me No foolin around!!",Enum.ChatColor.Red)
- s.Torso.Voice1:Play()
- s.Humanoid.Health = s.Humanoid.Health + 10000
- s.Humanoid.WalkSpeed = s.Humanoid.WalkSpeed * 2
- s.Torso.SaiyanEnergy:Play()
- s.Torso.SaiyanEnergy2:Play()
- ball2.BrickColor = BrickColor.new("Toothpaste")
- beam2.BrickColor = BrickColor.new("Toothpaste")
- FullReset()
- attack = attack + 10
- force = force + 10
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- Attack()
- s.Torso.Touched:connect(function(hit)
- if hit_ == true then
- hit_ = false
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- if hits < needed and s.Humanoid.Health > 0 then
- local audio = math.random(1,2) --[[Random Play]]
- if audio == 1 then s.Torso.DMG:Play() else s.Torso.DMG2:Play() end
- h.Health = h.Health - attack
- hits = hits + 1
- Attack()
- hit_ = false
- else
- hits = 0
- hit_ = false
- end
- end
- end
- end)
- end
- end)
- --After both> Pick random moves
- mouse.KeyDown:connect(function(key)
- if key == "z" then
- Kamehameha()
- Kamehameha()
- Kamehameha()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "v" then
- Kamehameha()
- teleport()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "k" then
- Kamehameha()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "t" then
- teleport()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "b" then
- Kamehameha2()
- end
- end)
- Part20.Name = "TeleportEffect"
- Part20.Parent = Torso
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.BrickColor = BrickColor.new("Institutional white")
- Part20.Transparency = 1
- Part20.Rotation = Vector3.new(0, -90, 0)
- Part20.Anchored = true
- Part20.CanCollide = false
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.Size = Vector3.new(2, 2, 1)
- Part20.CFrame = CFrame.new(-5.07995605, 6.19000816, -8.41711426, 4.64180347e-22, 7.54698154e-22, -1, -5.23691863e-22, 1, 7.54698154e-22, 1, 5.23691863e-22, 4.64180347e-22)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part20.Position = Vector3.new(-5.07995605, 6.19000816, -8.41711426)
- Part20.Orientation = Vector3.new(0, -90, 0)
- Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BillboardGui21.Name = "Gui"
- BillboardGui21.Parent = Part20
- BillboardGui21.Size = UDim2.new(5, 0, 5, 0)
- BillboardGui21.Active = true
- ImageLabel22.Name = "Image"
- ImageLabel22.Parent = BillboardGui21
- ImageLabel22.Transparency = 1
- ImageLabel22.Size = UDim2.new(2.5, 0, 2.5, 0)
- ImageLabel22.Position = UDim2.new(0, -40, 0, -40)
- ImageLabel22.Active = true
- ImageLabel22.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel22.BackgroundTransparency = 1
- ImageLabel22.Image = "rbxassetid://507458850"
- --[[ This may take time, use this script in your own scripts just to add a ragdoll whenever you die, works for only r6 people
- ]]
- HUMANOID = game.Players.LocalPlayer.Character.Humanoid
- wait()
- if HUMANOID.RigType ~= Enum.HumanoidRigType.R6 then
- game.Debris:AddItem(script,1)
- else
- wait()
- function getAttachment0(attachmentName)
- for _,child in next,script.Parent:GetChildren() do
- local attachment = child:FindFirstChild(attachmentName)
- if attachment then
- return attachment
- end
- end
- end
- HUMANOID.Died:Connect(function(var)
- mODEL = Instance.new("Model")
- mODEL.Parent = workspace
- local removeHRP = true
- local head = HUMANOID.Parent.Head
- local leftarm = HUMANOID.Parent["Left Arm"]
- local leftleg = HUMANOID.Parent["Left Leg"]
- local rightleg = HUMANOID.Parent["Right Leg"]
- local rightarm = HUMANOID.Parent["Right Arm"]
- local torso = HUMANOID.Parent.Torso
- local root =HUMANOID.Parent.HumanoidRootPart
- head:Clone().Parent = mODEL
- rightarm:Clone().Parent = mODEL
- rightleg:Clone().Parent = mODEL
- leftarm:Clone().Parent = mODEL
- leftleg:Clone().Parent = mODEL
- if removeHRP == true then
- root:Destroy()
- end
- local rootA =Instance.new("Attachment")
- local HeadA = Instance.new("Attachment")
- local LeftArmA = Instance.new("Attachment")
- local LeftLegA = Instance.new("Attachment")
- local RightArmA = Instance.new("Attachment")
- local RightLegA = Instance.new("Attachment")
- local TorsoA = Instance.new("Attachment")
- local TorsoA1 = Instance.new("Attachment")
- local TorsoA2 = Instance.new("Attachment")
- local TorsoA3 = Instance.new("Attachment")
- local TorsoA4 = Instance.new("Attachment")
- local TorsoA5 = Instance.new("Attachment")
- function set1()
- HeadA.Name = "HeadA"
- HeadA.Parent = mODEL.head
- HeadA.Position = Vector3.new(0, -0.5, 0)
- HeadA.Rotation = Vector3.new(0, 0, 0)
- HeadA.Axis = Vector3.new(1, 0, 0)
- HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
- LeftArmA.Name = "LeftArmA"
- LeftArmA.Parent = mODEL.leftarm
- LeftArmA.Position = Vector3.new(0.5, 1, 0)
- LeftArmA.Rotation = Vector3.new(0, 0, 0)
- LeftArmA.Axis = Vector3.new(1, 0, 0)
- LeftArmA.SecondaryAxis = Vector3.new(0, 1, 0)
- LeftLegA.Name = "LeftLegA"
- LeftLegA.Parent = mODEL.leftleg
- LeftLegA.Position = Vector3.new(0, 1, 0)
- LeftLegA.Rotation = Vector3.new(0, 0, 0)
- LeftLegA.Axis = Vector3.new(1, 0, 0)
- LeftLegA.SecondaryAxis = Vector3.new(0, 1, 0)
- RightArmA.Name = "RightArmA"
- RightArmA.Parent = mODEL.rightarm
- RightArmA.Position = Vector3.new(-0.5, 1, 0)
- RightArmA.Rotation = Vector3.new(0, 0, 0)
- RightArmA.Axis = Vector3.new(1, 0, 0)
- RightArmA.SecondaryAxis = Vector3.new(0, 1, 0)
- RightLegA.Name = "RightLegA"
- RightLegA.Parent = mODEL.rightleg
- RightLegA.Position = Vector3.new(0, 1, 0)
- RightLegA.Rotation = Vector3.new(0, 0, 0)
- RightLegA.Axis = Vector3.new(1, 0, 0)
- RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
- rootA.Name= "rootA"
- rootA.Parent = root
- rootA.Position = Vector3.new(0, 0, 0)
- rootA.Rotation = Vector3.new(0, 90, 0)
- rootA.Axis = Vector3.new(0, 0, -1)
- rootA.SecondaryAxis = Vector3.new(0, 1, 0)
- end
- function set2()
- TorsoA.Name = "TorsoA"
- TorsoA.Parent = mODEL.torso
- TorsoA.Position = Vector3.new(0.5, -1, 0)
- TorsoA.Rotation = Vector3.new(0, 0, 0)
- TorsoA.Axis = Vector3.new(1, 0, 0)
- TorsoA.SecondaryAxis = Vector3.new(0, 1, 0)
- TorsoA1.Name = "TorsoA1"
- TorsoA1.Parent = mODEL.torso
- TorsoA1.Position = Vector3.new(-0.5, -1, 0)
- TorsoA1.Rotation = Vector3.new(0, 0, 0)
- TorsoA1.Axis = Vector3.new(1, 0, 0)
- TorsoA1.SecondaryAxis = Vector3.new(0, 1, 0)
- TorsoA2.Name = "TorsoA2"
- TorsoA2.Parent = mODEL.torso
- TorsoA2.Position = Vector3.new(-1, 1, 0)
- TorsoA2.Rotation = Vector3.new(0, 0, 0)
- TorsoA2.Axis = Vector3.new(1, 0, 0)
- TorsoA2.SecondaryAxis = Vector3.new(0, 1, 0)
- TorsoA3.Name = "TorsoA3"
- TorsoA3.Parent = mODEL.torso
- TorsoA3.Position = Vector3.new(1, 1, 0)
- TorsoA3.Rotation = Vector3.new(0, 0, 0)
- TorsoA3.Axis = Vector3.new(1, 0, 0)
- TorsoA3.SecondaryAxis = Vector3.new(0, 1, 0)
- TorsoA4.Name = "TorsoA4"
- TorsoA4.Parent = mODEL.torso
- TorsoA4.Position = Vector3.new(0, 1, 0)
- TorsoA4.Rotation = Vector3.new(0, 0, 0)
- TorsoA4.Axis = Vector3.new(1, 0, 0)
- TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
- TorsoA5.Name = "TorsoA5"
- TorsoA5.Parent = mODEL.torso
- TorsoA5.Position = Vector3.new(0, 0, 0)
- TorsoA5.Rotation = Vector3.new(0, 90, 0)
- TorsoA5.Axis = Vector3.new(0, 0, -1)
- TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
- end
- function set3()
- end
- spawn(set1);
- spawn(set2);
- local HA = Instance.new("HingeConstraint")
- HA.Parent = head
- HA.Attachment0 = HeadA
- HA.Attachment1 = TorsoA4
- HA.Enabled = true
- HA.LimitsEnabled=true
- HA.LowerAngle=0
- HA.UpperAngle=0
- local LAT = Instance.new("BallSocketConstraint")
- LAT.Parent = leftarm
- LAT.Attachment0 = LeftArmA
- LAT.Attachment1 = TorsoA2
- LAT.Enabled = true
- LAT.LimitsEnabled=true
- LAT.UpperAngle=90
- local RAT = Instance.new("BallSocketConstraint")
- RAT.Parent = rightarm
- RAT.Attachment0 = RightArmA
- RAT.Attachment1 = TorsoA3
- RAT.Enabled = true
- RAT.LimitsEnabled=true
- RAT.UpperAngle=90
- local HA = Instance.new("BallSocketConstraint")
- HA.Parent = head
- HA.Attachment0 = HeadA
- HA.Attachment1 = TorsoA4
- HA.Enabled = true
- local TLL = Instance.new("BallSocketConstraint")
- TLL.Parent = torso
- TLL.Attachment0 = TorsoA1
- TLL.Attachment1 = LeftLegA
- TLL.Enabled = true
- TLL.LimitsEnabled=true
- TLL.UpperAngle=90
- local TRL = Instance.new("BallSocketConstraint")
- TRL.Parent = torso
- TRL.Attachment0 = TorsoA
- TRL.Attachment1 = RightLegA
- TRL.Enabled = true
- TRL.LimitsEnabled=true
- TRL.UpperAngle=90
- local RTA = Instance.new("BallSocketConstraint")
- RTA.Parent = root
- RTA.Attachment0 = rootA
- RTA.Attachment1 = TorsoA5
- RTA.Enabled = true
- RTA.LimitsEnabled=true
- RTA.UpperAngle=0
- head.Velocity = head.CFrame.lookVector*30
- local player = game:GetService("Players").LocalPlayer
- player:LoadCharacter()
- for _,child in next,script.Parent:GetChildren() do
- if child:IsA("Accoutrement") then
- for _,part in next,child:GetChildren() do
- if part:IsA("BasePart") then
- part.Parent = script.Parent
- child:remove()
- local attachment1 = part:FindFirstChildOfClass("Attachment")
- local attachment0 = getAttachment0(attachment1.Name)
- if attachment0 and attachment1 then
- local constraint = Instance.new("HingeConstraint")
- constraint.Attachment0 = attachment0
- constraint.Attachment1 = attachment1
- constraint.LimitsEnabled = true
- constraint.UpperAngle = 0
- constraint.LowerAngle = 0
- constraint.Parent = script.Parent
- end
- end
- end
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement