Advertisement
RobloxScriptzzz

roblox script not by me but edited

Oct 26th, 2017
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.37 KB | None | 0 0
  1. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  2. secondcolor = "Really black"
  3.  
  4. wait(1 / 60)
  5. Effects = { }
  6. local Player = game.Players.localPlayer
  7. local Character = Player.Character
  8. local Humanoid = Character.Humanoid
  9. local mouse = Player:GetMouse()
  10. local LeftArm = Character["Left Arm"]
  11. local RightArm = Character["Right Arm"]
  12. local LeftLeg = Character["Left Leg"]
  13. local RightLeg = Character["Right Leg"]
  14. local Head = Character.Head
  15. local Torso = Character.Torso
  16. local cam = game.Workspace.CurrentCamera
  17. local RootPart = Character.HumanoidRootPart
  18. local RootJoint = RootPart.RootJoint
  19. local equipped = true
  20. local attack = false
  21. local Anim = 'Idle'
  22. local idle = 0
  23. local attacktype = 1
  24. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  25. local velocity = RootPart.Velocity.y
  26. local sine = 0
  27. local change = 1
  28. local grabbed = false
  29. local cn = CFrame.new
  30. local mr = math.rad
  31. local angles = CFrame.Angles
  32. local ud = UDim2.new
  33. local c3 = Color3.new
  34. local dir = {w = 0, s = 0, a = 0, d = 0}
  35. Climbanim = false
  36. Runkey=false
  37. firemode = false
  38. inair = false
  39. blocking=false
  40. humHsave=0
  41. humDsave=0
  42. extralock=true
  43. lasthit = nil
  44. IKM = false
  45. HMDX = Humanoid.MoveDirection.X/3
  46. HMDZ = Humanoid.MoveDirection.Z/3
  47. local s = Instance.new("Sound",Character)
  48. s.Name = "BumperCarSound"
  49. s.SoundId = "http://www.roblox.com/asset/?id=532147820"
  50. s.Pitch = .7
  51. s.Volume = .5
  52. s.Looped = true
  53. s.archivable = false
  54. s.Parent = Character
  55. s:play()
  56.  
  57. sflon = true
  58. bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
  59. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  60. if attack == true then
  61. bg2.D = 0
  62. bg2.P = 0
  63. bg2.maxTorque = Vector3.new(0,0,0)
  64. end
  65. if attack == false then
  66. bg2.D = 100
  67. bg2.P = 9999
  68. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  69. bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
  70.  
  71. end
  72. end)--]]
  73.  
  74.  
  75. New = function(Object, Parent, Name, Data)
  76. local Object = Instance.new(Object)
  77. for Index, Value in pairs(Data or {}) do
  78. Object[Index] = Value
  79. end
  80. Object.Parent = Parent
  81. Object.Name = Name
  82. return Object
  83. end
  84.  
  85. BumperCar = New("Model",Workspace,"BumperCar",{})
  86. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.299999952),CFrame = CFrame.new(-5.95999956, 9.90000057, -36.2131157, 1, 7.64274186e-15, 0, 7.64274186e-15, -1, -8.74227766e-08, 0, 8.74227766e-08, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  87. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.5, 0.100000001, 0.100000001),CFrame = CFrame.new(-4.02177143, 11.8595181, -40.6349945, -0.466506243, -0.129409313, 0.87500006, -0.741025686, -0.482962549, -0.466506183, 0.482962519, -0.866025567, 0.129409432),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  88. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999994, 3.9000001, 3.9000001),CFrame = CFrame.new(-5.16500664, 8.05000019, -38.9131165, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  89. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.79999995, 0.800000072, 0.800000072),CFrame = CFrame.new(-5.81500626, 8.5, -34.7631149, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  90. SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(4, 0.899999976, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  91. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Olive"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999845, 0.699999988, 0.699999988),CFrame = CFrame.new(-5.81500578, 8.5, -33.4031143, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.756863, 0.745098, 0.258824),})
  92. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999976, 4, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -34.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  93. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.599999964, 1.49999952),CFrame = CFrame.new(-6.46000004, 8.85000038, -39.5131149, 4.37113883e-08, -1, -1.19248771e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, 1, 4.37113883e-08, 8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  94. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 1, 0.299999952),CFrame = CFrame.new(-4.35999966, 9.60000038, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  95. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 0.999999523),CFrame = CFrame.new(-3.50999951, 8.60000038, -36.8631134, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  96. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.89999986, 1.99999988, 1.99999988),CFrame = CFrame.new(-5.15999985, 8.5, -34.9000015, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  97. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.49999976, 0.0999999866, 0.109999947),CFrame = CFrame.new(-5.15999985, 9.95000076, -36.4081154, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  98. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 0.999999523),CFrame = CFrame.new(-6.80999947, 8.60000038, -36.8631134, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  99. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1.60000002, 0.999999523),CFrame = CFrame.new(-6.80999947, 8.90000057, -38.5631142, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  100. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.49999988, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.52999973, 10.6799994, -40.1199951, -0.258819044, 3.08638382e-09, 0.965925813, -0.933012724, -0.258818835, -0.25, 0.249999776, -0.965925872, 0.0669872463),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  101. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999976, 4, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -38.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  102. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.69999993, 0.100000024, 0.0999999493),CFrame = CFrame.new(-5.15999985, 10.0500002, -36.4131165, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  103. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1.60000002, 0.999999523),CFrame = CFrame.new(-3.50999975, 8.90000057, -38.5631142, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  104. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1, 3.89999962),CFrame = CFrame.new(-3.50999975, 8.60000038, -37.1131134, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  105. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.399999857, 0.300000012, 0.300000012),CFrame = CFrame.new(-4.67235041, 10.1668425, -39.9824944, -0.258819044, 3.08638382e-09, 0.965925813, -0.933012724, -0.258818835, -0.25, 0.249999776, -0.965925872, 0.0669872463),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  106. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.5, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-3.11038089, 12.7026892, -41.3446198, -0.774519205, -0.353553116, 0.524519026, -0.408493787, -0.353553116, -0.841506362, 0.482962519, -0.866025567, 0.129409432),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  107. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.999999881, 2.0999999, 2.0999999),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.1499977, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  108. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.299999565),CFrame = CFrame.new(-5.85999918, 9.45000076, -39.5131149, 4.37113883e-08, 1, 1.19248771e-08, 7.10542736e-15, -1.19248762e-08, 0.99999994, 1, -4.37113883e-08, 6.06292123e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  109. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999857, 2.20000005, 2.20000005),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.0999985, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  110. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.199999571),CFrame = CFrame.new(-4.46000051, 9.70000076, -39.5131149, -1.31134158e-07, 1, 1.19248691e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, -1, -1.31134158e-07, -8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  111. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.300000012, 2.9000001),CFrame = CFrame.new(-5.15999985, 9.55000019, -34.9131165, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  112. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999999046, 1, 0.299999952),CFrame = CFrame.new(-5.96000004, 9.60000038, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  113. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 1.49999952),CFrame = CFrame.new(-3.8599999, 8.85000038, -39.5131149, -1.31134158e-07, 1, 1.19248691e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, -1, -1.31134158e-07, -8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  114. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.199999571),CFrame = CFrame.new(-5.85999918, 9.70000076, -39.5131149, 4.37113883e-08, -1, -1.19248771e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, 1, 4.37113883e-08, 8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  115. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.5999999, 1.20000005, 1.20000005),CFrame = CFrame.new(-4.51500654, 8.19999981, -34.8631134, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  116. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.34999967, 0.0999999866, 2.69999981),CFrame = CFrame.new(-5.1150074, 8.15000057, -37.7131157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  117. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.5999999, 1.20000005, 1.20000005),CFrame = CFrame.new(-5.81500626, 8.19999981, -34.8631134, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  118. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.300000012, 0.200000092),CFrame = CFrame.new(-5.15999985, 9.55000019, -33.3631172, -1, 0, -2.62268316e-07, 0, 1, 0, 2.62268316e-07, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  119. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.299999952),CFrame = CFrame.new(-4.35999966, 9.90000057, -36.2131157, 1, 7.64274186e-15, 0, 7.64274186e-15, -1, -8.74227766e-08, 0, 8.74227766e-08, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  120. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Medium blue"),Material = Enum.Material.SmoothPlastic,Transparency = 0.5,Transparency = 0.5,Size = Vector3.new(1.49999988, 0.980000019, 0.279999942),CFrame = CFrame.new(-5.16000032, 9.59000015, -36.2031174, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.431373, 0.6, 0.792157),})
  121. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.8499999, 0.099999994, 4),CFrame = CFrame.new(-5.16500711, 8.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  122. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.299999565),CFrame = CFrame.new(-4.45999908, 9.45000076, -39.5131149, -1.31134158e-07, -1, -1.19248771e-08, 7.10542736e-15, -1.19248762e-08, 0.99999994, -1, 1.31134158e-07, -5.0204151e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  123. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.69999993, 0.100000024, 0.299999952),CFrame = CFrame.new(-5.15999985, 10.0500002, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  124. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 1.4000001, 0.200000092),CFrame = CFrame.new(-5.15999985, 8.69999981, -33.3631172, 1, 8.74227766e-08, 2.62268316e-07, 8.74227766e-08, -1, 2.29282247e-14, 2.62268316e-07, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  125. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 2),CFrame = CFrame.new(-4.15999985, 8.60000038, -35.3631172, -1.19248806e-08, 1, -1.04250613e-15, 1, 1.19248806e-08, 8.74227766e-08, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  126. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999994, 3.9000001, 3.9000001),CFrame = CFrame.new(-5.16500664, 8.05000019, -35.0131149, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  127. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 3.89999962),CFrame = CFrame.new(-6.80999994, 8.60000038, -37.1131134, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  128. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.0999999493),CFrame = CFrame.new(-4.35999966, 9.90000057, -36.4131165, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  129. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.5, 1, 1.19999993),CFrame = CFrame.new(-5.15999985, 8.60000038, -35.7631149, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  130. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 2),CFrame = CFrame.new(-6.15999985, 8.60000038, -35.3631172, 9.9347659e-08, -1, 8.68524799e-15, -1, -9.9347659e-08, -8.74227766e-08, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  131. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3, 1, 1.99000001),CFrame = CFrame.new(-5.15999985, 8.60000038, -35.3581161, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  132. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.5, 0.600000024, 1.59999955),CFrame = CFrame.new(-5.15999985, 8.90000057, -39.3631134, -1, 0, -8.74227766e-08, 8.74227766e-08, 1.19248806e-08, -1, 1.04250613e-15, -1, -1.19248806e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  133. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.799999833, 2.29999995, 2.29999995),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.0499992, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  134. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Olive"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999845, 0.699999988, 0.699999988),CFrame = CFrame.new(-4.51500607, 8.5, -33.4031143, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.756863, 0.745098, 0.258824),})
  135. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999857, 2.39999986, 2.39999986),CFrame = CFrame.new(-5.15999985, 8.69999981, -39.5, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  136. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.99999988, 1.60000002, 1.60000002),CFrame = CFrame.new(-5.15999985, 9.05000019, -39.9999962, -2.08616257e-07, 0, 1, -1, 1.19248806e-08, -2.08616257e-07, -1.19248806e-08, -1, -2.48772391e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  137. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.699999809, 2.0999999, 2.0999999),CFrame = CFrame.new(-5.15999985, 8.55000019, -35.5999985, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  138. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.71999979, 2.19999981, 2.19999981),CFrame = CFrame.new(-5.15999985, 8.60000038, -36.0099983, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  139. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.79999995, 0.800000072, 0.800000072),CFrame = CFrame.new(-4.51500654, 8.5, -34.7631149, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  140. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.0999999493),CFrame = CFrame.new(-5.95999956, 9.90000057, -36.4131165, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  141.  
  142.  
  143.  
  144.  
  145. FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -34.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162. local all,last = {}
  163. function scan(p)
  164. for _,v in pairs(p:GetChildren()) do
  165. if (v:IsA("BasePart")) then
  166. if (last) then
  167. local w = Instance.new("Weld")
  168. w.Part0,w.Part1 = last,v
  169. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  170. w.Parent = last
  171. end
  172. table.insert(all,v)
  173. last = v
  174. end
  175. scan(v)
  176. end
  177. end
  178. scan(BumperCar)
  179.  
  180.  
  181. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  182. BumperCar.Parent = Character
  183.  
  184.  
  185. local Services = {
  186.  
  187.  
  188. SoundService = game:GetService("SoundService");
  189. Players = game:GetService("Players");
  190. Debris = game:GetService("Debris");
  191. Workspace = game:GetService("Workspace");
  192. Lighting = game:GetService("Lighting");
  193. HttpService = game:GetService("HttpService");
  194. InsertService = game:GetService("InsertService");
  195.  
  196. }
  197.  
  198. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  199. Humanoid.Animator:Destroy()
  200. Character.Animate:Destroy()
  201.  
  202. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  203. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  204. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  205.  
  206.  
  207.  
  208. SWW = Instance.new("Weld")
  209. SWW.Name = "SWW"
  210. SWW.Part0 = Torso
  211. SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
  212. SWW.C1 = cn(0, 0, 0)
  213. SWW.Part1 = SwHandle
  214. SWW.Parent = Torso
  215.  
  216. RSH, LSH = nil, nil
  217.  
  218. RW = Instance.new("Weld")
  219. LW = Instance.new("Weld")
  220.  
  221. RH = Torso["Right Hip"]
  222. LH = Torso["Left Hip"]
  223.  
  224. RSH = Torso["Right Shoulder"]
  225. LSH = Torso["Left Shoulder"]
  226.  
  227. RSH.Parent = nil
  228. LSH.Parent = nil
  229.  
  230. RW.Name = "RW"
  231. RW.Part0 = Torso
  232. RW.C0 = cn(1.5, 0.5, 0)
  233. RW.C1 = cn(0, 0.5, 0)
  234. RW.Part1 = RightArm
  235. RW.Parent = Torso
  236.  
  237. LW.Name = "LW"
  238. LW.Part0 = Torso
  239. LW.C0 = cn(-1.5, 0.5, 0)
  240. LW.C1 = cn(0, 0.5, 0)
  241. LW.Part1 = LeftArm
  242. LW.Parent = Torso
  243.  
  244. function clerp(a, b, t)
  245. local qa = {
  246. QuaternionFromCFrame(a)
  247. }
  248. local qb = {
  249. QuaternionFromCFrame(b)
  250. }
  251. local ax, ay, az = a.x, a.y, a.z
  252. local bx, by, bz = b.x, b.y, b.z
  253. local _t = 1 - t
  254. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  255. end
  256.  
  257. function QuaternionFromCFrame(cf)
  258. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  259. local trace = m00 + m11 + m22
  260. if trace > 0 then
  261. local s = math.sqrt(1 + trace)
  262. local recip = 0.5 / s
  263. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  264. else
  265. local i = 0
  266. if m11 > m00 then
  267. i = 1
  268. end
  269. if m22 > (i == 0 and m00 or m11) then
  270. i = 2
  271. end
  272. if i == 0 then
  273. local s = math.sqrt(m00 - m11 - m22 + 1)
  274. local recip = 0.5 / s
  275. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  276. elseif i == 1 then
  277. local s = math.sqrt(m11 - m22 - m00 + 1)
  278. local recip = 0.5 / s
  279. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  280. elseif i == 2 then
  281. local s = math.sqrt(m22 - m00 - m11 + 1)
  282. local recip = 0.5 / s
  283. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  284. end
  285. end
  286. end
  287.  
  288. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  289. local xs, ys, zs = x + x, y + y, z + z
  290. local wx, wy, wz = w * xs, w * ys, w * zs
  291. local xx = x * xs
  292. local xy = x * ys
  293. local xz = x * zs
  294. local yy = y * ys
  295. local yz = y * zs
  296. local zz = z * zs
  297. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  298. end
  299.  
  300. function QuaternionSlerp(a, b, t)
  301. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  302. local startInterp, finishInterp;
  303. if cosTheta >= 0.0001 then
  304. if (1 - cosTheta) > 0.0001 then
  305. local theta = math.acos(cosTheta)
  306. local invSinTheta = 1 / math.sin(theta)
  307. startInterp = math.sin((1 - t) * theta) * invSinTheta
  308. finishInterp = math.sin(t * theta) * invSinTheta
  309. else
  310. startInterp = 1 - t
  311. finishInterp = t
  312. end
  313. else
  314. if (1 + cosTheta) > 0.0001 then
  315. local theta = math.acos(-cosTheta)
  316. local invSinTheta = 1 / math.sin(theta)
  317. startInterp = math.sin((t - 1) * theta) * invSinTheta
  318. finishInterp = math.sin(t * theta) * invSinTheta
  319. else
  320. startInterp = t - 1
  321. finishInterp = t
  322. end
  323. end
  324. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  325. end
  326.  
  327. function swait(num)
  328. if num == 0 or num == nil then
  329. game:service'RunService'.RenderStepped:wait(0)
  330. else
  331. for i = 0, num do
  332. game:service'RunService'.RenderStepped:wait(0)
  333. end
  334. end
  335. end
  336.  
  337. local RbxUtility = LoadLibrary("RbxUtility")
  338. local Create = RbxUtility.Create
  339.  
  340. function RemoveOutlines(part)
  341. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  342. end
  343.  
  344. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  345. local Part = Create("Part"){
  346. formFactor = FormFactor,
  347. Parent = Parent,
  348. Reflectance = Reflectance,
  349. Transparency = Transparency,
  350. CanCollide = false,
  351. Locked = true,
  352. BrickColor = BrickColor.new(tostring(BColor)),
  353. Name = Name,
  354. Size = Size,
  355. Material = Material,
  356. }
  357. RemoveOutlines(Part)
  358. return Part
  359. end
  360.  
  361. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  362. local Msh = Create(Mesh){
  363. Parent = Part,
  364. Offset = OffSet,
  365. Scale = Scale,
  366. }
  367. if Mesh == "SpecialMesh" then
  368. Msh.MeshType = MeshType
  369. Msh.MeshId = MeshId
  370. end
  371. return Msh
  372. end
  373.  
  374. function CreateWeld(Parent, Part0, Part1, C0, C1)
  375. local Weld = Create("Weld"){
  376. Parent = Parent,
  377. Part0 = Part0,
  378. Part1 = Part1,
  379. C0 = C0,
  380. C1 = C1,
  381. }
  382. return Weld
  383. end
  384.  
  385. function rayCast(Position, Direction, Range, Ignore)
  386. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  387. end
  388.  
  389. function CreateSound(id, par, vol, pit)
  390. coroutine.resume(coroutine.create(function()
  391. local sou = Instance.new("Sound", par or workspace)
  392. sou.Volume = vol
  393. sou.Pitch = pit or 1
  394. sou.SoundId = id
  395. wait()
  396. sou:play()
  397. game:GetService("Debris"):AddItem(sou, 6)
  398. end))
  399. end
  400. function CreateSong(id, par, vol, pit)
  401. coroutine.resume(coroutine.create(function()
  402. sou2 = Instance.new("Sound", par or workspace)
  403. sou2.Volume = vol
  404. sou2.Pitch = 1
  405. sou2.SoundId = id
  406. wait()
  407. sou2:play()
  408. sou2.Looped = true
  409. end))
  410. end
  411.  
  412. local function getclosest(obj, distance)
  413. local last, lastx = distance + 1
  414. for i, v in pairs(workspace:GetChildren()) do
  415. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  416. local t = v.Torso
  417. local dist = (t.Position - obj.Position).magnitude
  418. if dist <= distance then
  419. if dist < last then
  420. last = dist
  421. lastx = v
  422. end
  423. end
  424. end
  425. end
  426. return lastx
  427. end
  428.  
  429. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  430. for i, v in pairs(hit:GetChildren()) do
  431. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  432. local find = v:FindFirstChild("Hitz")
  433. if not find then
  434. if v.Parent:findFirstChild("Head") then
  435. local BillG = Create("BillboardGui"){
  436. Parent = v.Parent.Head,
  437. Size = UDim2.new(1, 0, 1, 0),
  438. Adornee = v.Parent.Head,
  439. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  440. }
  441. local TL = Create("TextLabel"){
  442. Parent = BillG,
  443. Size = UDim2.new(3, 3, 3, 3),
  444. BackgroundTransparency = 1,
  445. Text = tostring(damage).."-",
  446. TextColor3 = Color1.Color,
  447. TextStrokeColor3 = Color2.Color,
  448. TextStrokeTransparency = 0,
  449. TextXAlignment = Enum.TextXAlignment.Center,
  450. TextYAlignment = Enum.TextYAlignment.Center,
  451. FontSize = Enum.FontSize.Size18,
  452. Font = "ArialBold",
  453. }
  454. coroutine.resume(coroutine.create(function()
  455. wait(1)
  456. for i = 0, 1, .1 do
  457. wait(.1)
  458. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  459. end
  460. BillG:Destroy()
  461. end))
  462. end
  463. v.Health = v.Health - damage
  464. local bool = Create("BoolValue"){
  465. Parent = v,
  466. Name = 'Hitz',
  467. }
  468. if HSound ~= nil and HPitch ~= nil then
  469. CreateSound(HSound, hit, 1, HPitch)
  470. end
  471. game:GetService("Debris"):AddItem(bool, cooldown)
  472. end
  473. end
  474. end
  475. end
  476.  
  477.  
  478. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  479. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  480. prt.Anchored = true
  481. prt.CFrame = cframe
  482. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  483. game:GetService("Debris"):AddItem(prt, 10)
  484. if Type == 1 or Type == nil then
  485. table.insert(Effects, {
  486. prt,
  487. "Block1",
  488. delay,
  489. x3,
  490. y3,
  491. z3,
  492. msh
  493. })
  494. elseif Type == 2 then
  495. table.insert(Effects, {
  496. prt,
  497. "Block2",
  498. delay,
  499. x3,
  500. y3,
  501. z3,
  502. msh
  503. })
  504. elseif Type == 3 then
  505. table.insert(Effects, {
  506. prt,
  507. "Block3",
  508. delay,
  509. x3,
  510. y3,
  511. z3,
  512. msh
  513. })
  514. end
  515. end
  516.  
  517. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  518. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  519. prt.Anchored = true
  520. prt.CFrame = cframe
  521. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  522. game:GetService("Debris"):AddItem(prt, 10)
  523. table.insert(Effects, {
  524. prt,
  525. "Cylinder",
  526. delay,
  527. x3,
  528. y3,
  529. z3,
  530. msh
  531. })
  532. end
  533.  
  534. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  535. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  536. prt.Anchored = true
  537. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  538. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  539. game:GetService("Debris"):AddItem(prt, 10)
  540. table.insert(Effects, {
  541. prt,
  542. "Cylinder",
  543. delay,
  544. x3,
  545. y3,
  546. z3,
  547. msh
  548. })
  549. end
  550.  
  551. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  552. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  553. prt.Anchored = true
  554. prt.CFrame = cframe
  555. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  556. game:GetService("Debris"):AddItem(prt, 10)
  557. table.insert(Effects, {
  558. prt,
  559. "Cylinder",
  560. delay,
  561. x3,
  562. y3,
  563. z3,
  564. msh
  565. })
  566. end
  567.  
  568. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  569. local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  570. prt.Anchored = true
  571. prt.CFrame = cframe
  572. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  573. game:GetService("Debris"):AddItem(prt, 10)
  574. table.insert(Effects, {
  575. prt,
  576. "Cylinder",
  577. delay,
  578. x3,
  579. y3,
  580. z3,
  581. msh
  582. })
  583. end
  584.  
  585. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  586. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  587. prt.Anchored = true
  588. prt.CFrame = cframe
  589. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  590. game:GetService("Debris"):AddItem(prt, 10)
  591. table.insert(Effects, {
  592. prt,
  593. "Cylinder",
  594. delay,
  595. x3,
  596. y3,
  597. z3,
  598. msh
  599. })
  600. end
  601.  
  602. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  603. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  604. prt.Anchored = true
  605. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  606. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  607. local num = math.random(10, 50) / 1000
  608. game:GetService("Debris"):AddItem(prt, 10)
  609. table.insert(Effects, {
  610. prt,
  611. "Shatter",
  612. num,
  613. prt.CFrame,
  614. math.random() - math.random(),
  615. 0,
  616. math.random(50, 100) / 100
  617. })
  618. end
  619.  
  620.  
  621.  
  622.  
  623. for i = 0, 1, 0.05 do
  624. swait()
  625. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  626. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  627. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  628. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  629. if Torsovelocity > 2 then
  630. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  631. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  632. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  633. elseif Torsovelocity < 1 then
  634. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  635. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  636. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  637. end
  638. end
  639. attack = false
  640.  
  641.  
  642.  
  643. game:GetService'RunService'.Stepped:connect(function()
  644. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  645. velocity = RootPart.Velocity.y
  646. sine = sine + change
  647. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  648. if equipped == true or equipped == false then
  649. if RootPart.Velocity.y > -1 and hit == nil then
  650. Anim = "Jump"
  651. inair = true
  652. if attack == false then
  653. s.Pitch = 1
  654. s.Volume = 1
  655. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  656. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  657. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1)
  658. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1)
  659. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  660. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  661. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  662. end
  663.  
  664. elseif RootPart.Velocity.y < -1 and hit == nil then
  665. Anim = "Fall"
  666. inair = true
  667. if attack == false then
  668. s.Pitch = .7
  669. s.Volume = .5
  670. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  671. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  672. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05)
  673. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05)
  674. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  675. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  676. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  677. end
  678. elseif Torsovelocity < 1 and hit ~= nil then
  679. Anim = "Idle"
  680.  
  681. inair = false
  682. if attack == false then
  683. s.Pitch = .7
  684. s.Volume = .5
  685. change = 0.8
  686. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  687. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  688. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  689. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  690. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  691. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  692. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  693. end --]]
  694.  
  695. elseif Torsovelocity > 1 and hit ~= nil then
  696. Anim = "Walk"
  697. inair = false
  698.  
  699. if attack == false and Runkey == true then
  700. s.Pitch = 1
  701. s.Volume = .9
  702.  
  703. change = 1
  704. Humanoid.WalkSpeed = 30
  705. Humanoid.JumpPower = 55
  706. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4)
  707. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .2)
  708. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2)
  709. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2)
  710. RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4)
  711. LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4)
  712. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)
  713. end
  714. if attack == false and Runkey == false then
  715. s.Pitch = .8
  716. s.Volume = .6
  717. change = 0.65
  718. Humanoid.WalkSpeed = 13 --* math.cos(sine / 2)
  719. Humanoid.JumpPower = 50
  720. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3)
  721. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1)
  722. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  723. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  724. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  725. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  726. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  727. end
  728.  
  729.  
  730.  
  731.  
  732. function onClimbing(speed)
  733. if attack == false then
  734. attack = true
  735. Climbanim= true
  736. Humanoid.WalkSpeed = 14
  737. while Climbanim == true do
  738. for i = 0, 0, 0.1 do
  739. swait()
  740.  
  741. change = 0.5
  742.  
  743.  
  744.  
  745. if RootPart.Velocity.y > .01 then
  746. s.Pitch = .9
  747. s.Volume = .5
  748. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
  749. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  750. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  751. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  752. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  753. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  754. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  755. end
  756.  
  757.  
  758.  
  759.  
  760. if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5 then
  761. s.Pitch = .7
  762. s.Volume = .5
  763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
  764. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  765. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  766. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  767. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  768. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  769. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  770. end
  771.  
  772.  
  773. if RootPart.Velocity.y < -1 then
  774. s.Pitch = .9
  775. s.Volume = .5
  776. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
  777. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  778. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  779. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  780. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  781. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  782. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) end
  783.  
  784. end
  785. if Torsovelocity > 1 then
  786. Climbanim = false
  787. end
  788. end
  789. attack = false
  790. end
  791. end
  792. Humanoid.Climbing:connect(onClimbing)
  793.  
  794.  
  795.  
  796. end
  797. end
  798.  
  799.  
  800. if #Effects > 0 then
  801. for e = 1, #Effects do
  802. if Effects[e] ~= nil then
  803. local Thing = Effects[e]
  804. if Thing ~= nil then
  805. local Part = Thing[1]
  806. local Mode = Thing[2]
  807. local Delay = Thing[3]
  808. local IncX = Thing[4]
  809. local IncY = Thing[5]
  810. local IncZ = Thing[6]
  811. if Thing[1].Transparency <= 1 then
  812. if Thing[2] == "Block1" then
  813. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  814. local Mesh = Thing[1].Mesh
  815. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  816. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  817. elseif Thing[2] == "Block2" then
  818. Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
  819. local Mesh = Thing[7]
  820. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  821. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  822. elseif Thing[2] == "Block3" then
  823. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0)
  824. local Mesh = Thing[7]
  825. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  826. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  827. elseif Thing[2] == "Cylinder" then
  828. local Mesh = Thing[1].Mesh
  829. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  830. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  831. elseif Thing[2] == "Blood" then
  832. local Mesh = Thing[7]
  833. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  834. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  835. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  836. elseif Thing[2] == "Elec" then
  837. local Mesh = Thing[1].Mesh
  838. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  839. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  840. elseif Thing[2] == "Disappear" then
  841. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  842. elseif Thing[2] == "Shatter" then
  843. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  844. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  845. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  846. Thing[6] = Thing[6] + Thing[5]
  847. end
  848. else
  849. Part.Parent = nil
  850. table.remove(Effects, e)
  851. end
  852. end
  853. end
  854. end
  855. end
  856. end)
  857.  
  858.  
  859. Effects = {
  860. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  861.  
  862. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  863. prt.Anchored = true
  864. prt.CFrame = cframe
  865. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  866. game:GetService("Debris"):AddItem(prt, 10)
  867. if Type == 1 or Type == nil then
  868. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  869. else
  870. if Type == 2 then
  871. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  872. else
  873. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  874. end
  875. end
  876. end
  877. }
  878. ,
  879. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  880.  
  881. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  882. prt.Anchored = true
  883. prt.CFrame = cframe
  884. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  885. game:GetService("Debris"):AddItem(prt, 10)
  886. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  887. end
  888. }
  889. ,
  890. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  891.  
  892. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  893. prt.Anchored = true
  894. prt.CFrame = cframe
  895. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  896. game:GetService("Debris"):AddItem(prt, 10)
  897. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  898. end
  899. }
  900. ,
  901. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  902.  
  903. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  904. prt.Anchored = true
  905. prt.CFrame = cframe
  906. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
  907. game:GetService("Debris"):AddItem(prt, 10)
  908. table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
  909. end
  910. }
  911. ,
  912. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  913.  
  914. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  915. prt.Anchored = true
  916. prt.CFrame = cframe
  917. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  918. game:GetService("Debris"):AddItem(prt, 10)
  919. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  920. end
  921. }
  922. ,
  923. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  924.  
  925. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  926. prt.Anchored = true
  927. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  928. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  929. local num = math.random(10, 50) / 1000
  930. game:GetService("Debris"):AddItem(prt, 10)
  931. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  932. end
  933. }
  934. }
  935.  
  936.  
  937.  
  938. RemoveOutlines = function(part)
  939.  
  940. part.TopSurface = 10
  941. end
  942.  
  943. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  944.  
  945. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  946. RemoveOutlines(Part)
  947. return Part
  948. end
  949.  
  950. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  951.  
  952. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  953. if Mesh == "SpecialMesh" then
  954. Msh.MeshType = MeshType
  955. Msh.MeshId = MeshId
  956. end
  957. return Msh
  958. end
  959.  
  960. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  961.  
  962. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  963. return Weld
  964. end
  965.  
  966.  
  967.  
  968.  
  969. WSHM = {'White',"Pastel light red"}
  970. WSH = WSHM[math.random(1,#WSHM)]
  971.  
  972.  
  973. IcePartFunk = function(HPart,aria,Min,Max)
  974.  
  975. IcePart = Instance.new("Part",HPart)
  976. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  977. IcePart.CanCollide = false
  978. IuW = Instance.new("Weld")
  979. IuW.Name = "GuW"
  980. IuW.Part0 = HPart
  981. IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
  982. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  983. IuW.Part1 = IcePart
  984. IuW.Parent = HPart
  985. IcePart.Transparency = .85
  986. IcePart.Material= "Neon"
  987. WSH = WSHM[math.random(1,#WSHM)]
  988. IcePart.BrickColor = BrickColor.new(""..WSH)
  989.  
  990. RemoveOutlines(IcePart)
  991. game:GetService("Debris"):AddItem(IuW, 4)
  992. game:GetService("Debris"):AddItem(IcePart, 6)
  993.  
  994.  
  995. end
  996. --[[
  997. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
  998.  
  999. IcePart2 = Instance.new("Part",HPart)
  1000. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1001. IcePart2.CanCollide = false
  1002. RemoveOutlines(IcePart2)
  1003. IcePart2.Anchored = true
  1004.  
  1005.  
  1006.  
  1007. IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014. IcePart2.Transparency = .85
  1015. IcePart2.Material= "Neon"
  1016.  
  1017. IcePart2.BrickColor = BrickColor.new(""..color)
  1018.  
  1019.  
  1020.  
  1021. game:GetService("Debris"):AddItem(IcePart2, 6)
  1022.  
  1023.  
  1024. end
  1025. --]]
  1026. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
  1027.  
  1028. IcePart2 = Instance.new("Part",HPart)
  1029. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1030. IcePart2.CanCollide = false
  1031. RemoveOutlines(IcePart2)
  1032. IcePart2.Anchored = true
  1033. game:GetService("Debris"):AddItem(IcePart2, .4)
  1034. IcePart2.Transparency = .3
  1035. IcePart2.Material= "Neon"
  1036. IcePart2.BrickColor = BrickColor.new(""..color)
  1037.  
  1038. IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)))
  1039. for i = 0,num do
  1040. if num > 1 then
  1041. GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)
  1042. end
  1043. end
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055. end
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061. SpikeMeshId = 1033714
  1062. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1063.  
  1064.  
  1065. local Part = Instance.new("Part", Parent)
  1066. Part.Name = Name
  1067. Part.BrickColor = BrickColor.new(Color)
  1068. Part.Size = Size
  1069. Part.Material = Material
  1070. Part.Transparency = Transparency
  1071. Part.CanCollide = false
  1072. RemoveOutlines(Part)
  1073.  
  1074. local Mesh = Instance.new("SpecialMesh", Part)
  1075. Mesh.MeshType = "Sphere"
  1076. Mesh.Scale = Scale
  1077.  
  1078. return Mesh and Part
  1079.  
  1080. end
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089. CFuncs = {
  1090. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1091.  
  1092. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1093. RemoveOutlines(Part)
  1094. return Part
  1095. end
  1096. }
  1097. ,
  1098. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1099.  
  1100. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1101. if Mesh == "SpecialMesh" then
  1102. Msh.MeshType = MeshType
  1103. Msh.MeshId = MeshId
  1104. end
  1105. return Msh
  1106. end
  1107. }
  1108. ,
  1109. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1110.  
  1111. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1112. if Mesh == "SpecialMesh" then
  1113. Msh.MeshType = MeshType
  1114. Msh.MeshId = MeshId
  1115. end
  1116. return Msh
  1117. end
  1118. }
  1119. ,
  1120. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1121.  
  1122. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1123. return Weld
  1124. end
  1125. }
  1126. ,
  1127. Sound = {Create = function(id, par, vol, pit)
  1128.  
  1129. coroutine.resume(coroutine.create(function()
  1130.  
  1131. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1132. wait()
  1133. S:play()
  1134. game:GetService("Debris"):AddItem(S, 6)
  1135. end
  1136. ))
  1137. end
  1138. }
  1139. ,
  1140. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1141.  
  1142. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  1143. return fp
  1144. end
  1145. }
  1146. }
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1153.  
  1154. if hit.Parent == nil then
  1155. return
  1156. end
  1157. local h = hit.Parent:FindFirstChild("Humanoid")
  1158. for _,v in pairs(hit.Parent:children()) do
  1159. if v:IsA("Humanoid") then
  1160. h = v
  1161. end
  1162. end
  1163. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1164. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1165. return
  1166. end
  1167. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1168. game:GetService("Debris"):AddItem(c, 0.5)
  1169. if HitSound ~= nil and HitPitch ~= nil then
  1170. CreateSound(HitSound, hit, 1, HitPitch)
  1171. end
  1172. local Damage = math.random(minim, maxim)
  1173. local blocked = false
  1174. local block = hit.Parent:findFirstChild("Block")
  1175. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1176. blocked = true
  1177. block.Value = block.Value - 1
  1178. print(block.Value)
  1179. end
  1180. if blocked == false then
  1181. h.Health = h.Health - Damage
  1182. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1183. else
  1184. h.Health = h.Health - Damage / 2
  1185. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1186. end
  1187. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1188. lasthit = hit.Parent.Torso
  1189. end
  1190. if Type == "Knockdown" then
  1191. local hum = hit.Parent.Humanoid
  1192. hum.PlatformStand = true
  1193. coroutine.resume(coroutine.create(function(HHumanoid)
  1194.  
  1195. swait(.2)
  1196. HHumanoid.PlatformStand = false
  1197. end
  1198. ), hum)
  1199. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1200. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1201. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1202. game:GetService("Debris"):AddItem(bodvol, 0.1)
  1203. game:GetService("Debris"):AddItem(rl, 0.1)
  1204. elseif Type == "Normal" then
  1205. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1206. if knockback > 0 then
  1207. vp.Parent = hit.Parent.Torso
  1208. end
  1209. game:GetService("Debris"):AddItem(vp, 0.5)
  1210. elseif Type == "Impale" then
  1211.  
  1212. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))
  1213. Spike.Anchored = true
  1214. Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
  1215. Spike.Position = hit.Parent.Torso.Position
  1216.  
  1217. Services.Debris:AddItem(Spike, 4)
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1225. hit.Parent.Humanoid.PlatformStand = true
  1226.  
  1227.  
  1228. swait(1)
  1229. hit.Parent.Humanoid.PlatformStand = false
  1230. elseif Type == "Up" then
  1231. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1232. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1233. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1234. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1235.  
  1236.  
  1237.  
  1238. elseif Type == "UltSlice" then
  1239.  
  1240. BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0, 0.01,2)
  1241. BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0, 0.01,2)
  1242. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.01,2)
  1243. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1244. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1245. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1246. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1247.  
  1248.  
  1249. elseif Type == "Slice" then
  1250. local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Torso})
  1251. game:GetService("Debris"):AddItem(bp2, 1)
  1252.  
  1253. if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1254. for i = 1,10 do
  1255. Effects.Break.Create (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
  1256.  
  1257.  
  1258. end
  1259. end
  1260.  
  1261.  
  1262.  
  1263.  
  1264. elseif Type == "Snare" then
  1265. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1266. game:GetService("Debris"):AddItem(bp, 1)
  1267. elseif Type == "Slowness" then
  1268. local SpeedSave=hit.Parent.Humanoid.WalkSpeed
  1269.  
  1270. for i = 1,25 do
  1271. hit.Parent.Humanoid.WalkSpeed = 4
  1272. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  1273. end
  1274. wait(4)
  1275. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  1276. elseif Type == "Firedmg" then
  1277.  
  1278. for i = 1,math.random(1, 6) do
  1279. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1280. BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  1281. BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  1282. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  1283.  
  1284.  
  1285.  
  1286. wait(.1)
  1287. end
  1288. end
  1289.  
  1290. elseif Type == "Freeze" then
  1291. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1292. game:GetService("Debris"):AddItem(bp, 4)
  1293. for i=1,25 do
  1294. IcePartFunk(hit.Parent.Torso,1,1.5,2)
  1295. end
  1296. elseif Type == "Freeze2" then
  1297. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1298. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1299. hit.Parent.Torso.Anchored = true
  1300. coroutine.resume(coroutine.create(function(Part)
  1301.  
  1302. swait(1.5)
  1303. Part.Anchored = false
  1304. end
  1305. ), hit.Parent.Torso)
  1306. game:GetService("Debris"):AddItem(BodPos, 3)
  1307. game:GetService("Debris"):AddItem(BodGy, 3)
  1308. end
  1309. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1310. game:GetService("Debris"):AddItem(debounce, Delay)
  1311. c = Instance.new("ObjectValue")
  1312. c.Name = "creator"
  1313. c.Value = Player
  1314. c.Parent = h
  1315. game:GetService("Debris"):AddItem(c, 0.5)
  1316. end
  1317. end
  1318.  
  1319. ShowDamage = function(Pos, Text, Time, Color)
  1320.  
  1321. local Rate = 0.033333333333333
  1322. if not Pos then
  1323. local Pos = Vector3.new(0, 0, 0)
  1324. end
  1325. local Text = Text or ""
  1326. local Time = Time or 2
  1327. if not Color then
  1328. local Color = Color3.new(1, 0, 1)
  1329. end
  1330. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1331. EffectPart.Anchored = true
  1332. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1333. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1334. game.Debris:AddItem(EffectPart, Time + 0.1)
  1335. EffectPart.Parent = game:GetService("Workspace")
  1336. delay(0, function()
  1337.  
  1338. local Frames = Time / Rate
  1339. for Frame = 1, Frames do
  1340. wait(Rate)
  1341. local Percent = Frame / Frames
  1342. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1343. TextLabel.TextTransparency = Percent
  1344. end
  1345. if EffectPart and EffectPart.Parent then
  1346. EffectPart:Destroy()
  1347. end
  1348. end
  1349. )
  1350. end
  1351.  
  1352. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1353.  
  1354. for _,c in pairs(workspace:children()) do
  1355. local hum = c:findFirstChild("Humanoid")
  1356. if hum ~= nil then
  1357. local head = c:findFirstChild("Head")
  1358. if head ~= nil then
  1359. local targ = head.Position - Part.Position
  1360. local mag = targ.magnitude
  1361. if mag <= magni and c.Name ~= Player.Name then
  1362. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  1363. end
  1364. end
  1365. end
  1366. end
  1367. end
  1368. MagniKILL = function(Part, magni, knock, Type)
  1369.  
  1370. for _,c in pairs(workspace:children()) do
  1371. local hum = c:findFirstChild("Humanoid")
  1372. if hum ~= nil then
  1373. local head = c:findFirstChild("Head")
  1374. if head ~= nil then
  1375. local targ = head.Position - Part.Position
  1376. local mag = targ.magnitude
  1377. if mag <= magni and c.Name ~= Player.Name then
  1378. hum.Health = 0
  1379. end
  1380. end
  1381. end
  1382. end
  1383. end
  1384. EffectModel = Instance.new("Model", Character)
  1385. EffectModel.Name = "Effects"
  1386.  
  1387. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1388.  
  1389. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1390. prt.Anchored = true
  1391. prt.CFrame = cframe
  1392. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1393. game:GetService("Debris"):AddItem(prt, 10)
  1394. if Type == 1 or Type == nil then
  1395. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1396. else
  1397. if Type == 2 then
  1398. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1399. else
  1400. if Type == 3 then
  1401. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1402. end
  1403. end
  1404. end
  1405. end
  1406. CreateSound = function(id, par, vol, pit)
  1407.  
  1408. coroutine.resume(coroutine.create(function()
  1409.  
  1410. local sou = Instance.new("Sound", par or workspace)
  1411. sou.Volume = vol
  1412. sou.Pitch = pit or 1
  1413. sou.SoundId = id
  1414. swait()
  1415. sou:play()
  1416. game:GetService("Debris"):AddItem(sou, 6)
  1417. end
  1418. ))
  1419. end
  1420.  
  1421. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1422.  
  1423. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1424. prt.Anchored = true
  1425. prt.CFrame = cframe
  1426. prt.Material = "Neon"
  1427. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1428. game:GetService("Debris"):AddItem(prt, 10)
  1429. coroutine.resume(coroutine.create(function(Part, Mesh)
  1430.  
  1431. for i = 0, 6, delay do
  1432. swait()
  1433. Part.Transparency = i
  1434. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1435. end
  1436. Part.Parent = nil
  1437. end
  1438. ), prt, msh)
  1439. end
  1440.  
  1441. shoottraildd = function(mouse, partt, SpreadAmount)
  1442.  
  1443. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
  1444. local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
  1445. local MainPos2 = mouse + SpreadVectors
  1446. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1447. local speed = 100
  1448. local num = 1
  1449. coroutine.resume(coroutine.create(function()
  1450.  
  1451. repeat
  1452. swait()
  1453. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1454. local mag = (MainPos - pos).magnitude
  1455. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
  1456. MainPos = MainPos + MouseLook.lookVector * speed
  1457. num = num - 1
  1458. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1459. if hit ~= nil then
  1460. num = 0
  1461. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1462. refpart.Anchored = true
  1463. refpart.CFrame = CFrame.new(pos)
  1464. game:GetService("Debris"):AddItem(refpart, 2)
  1465. end
  1466. do
  1467. if num <= 0 then
  1468. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1469. refpart.Anchored = true
  1470. refpart.CFrame = CFrame.new(pos)
  1471. if hit ~= nil then
  1472.  
  1473.  
  1474.  
  1475. GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
  1476. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
  1477. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1478. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1479. MagniDamage(refpart, 6, 10, 25, 0, "Slice")
  1480. end
  1481. game:GetService("Debris"):AddItem(refpart, 0)
  1482. end
  1483. end
  1484. until num <= 0
  1485. end
  1486. ))
  1487. end
  1488.  
  1489. shoottraildd2 = function(mouse, partt, SpreadAmount)
  1490.  
  1491. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1492. local MainPos = partt.Position
  1493. local MainPos2 = mouse + SpreadVectors
  1494. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1495. local speed = 1000
  1496. local num = 1
  1497. coroutine.resume(coroutine.create(function()
  1498.  
  1499. repeat
  1500. swait()
  1501. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1502. local mag = (MainPos - pos).magnitude
  1503. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
  1504. MainPos = MainPos + MouseLook.lookVector * speed
  1505. num = num - 1
  1506. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1507. if hit ~= nil then
  1508. num = 0
  1509. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1510. refpart.Anchored = true
  1511. refpart.CFrame = CFrame.new(pos)
  1512. game:GetService("Debris"):AddItem(refpart, 2)
  1513. end
  1514. do
  1515. if num <= 0 then
  1516. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1517. refpart.Anchored = true
  1518. refpart.CFrame = CFrame.new(pos)
  1519. if hit ~= nil then
  1520. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1521. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  1522. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1523. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1524. MagniKILL(refpart, 80, 0, "Normal")
  1525. end
  1526. game:GetService("Debris"):AddItem(refpart, 0)
  1527. end
  1528. end
  1529. until num <= 0
  1530. end
  1531. ))
  1532. end
  1533.  
  1534. shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  1535.  
  1536. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1537. local MainPos = partt.Position
  1538. local MainPos2 = mouse + SpreadVectors
  1539. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1540. local speed = 200
  1541. local num = 0
  1542. coroutine.resume(coroutine.create(function()
  1543.  
  1544. repeat
  1545. swait()
  1546. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1547. local mag = (MainPos - pos).magnitude
  1548. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
  1549. MainPos = MainPos + MouseLook.lookVector * speed
  1550. num = num - 1
  1551. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1552. if hit ~= nil then
  1553. num = 0
  1554. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1555. refpart.Anchored = true
  1556. refpart.CFrame = CFrame.new(pos)
  1557. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1558. game:GetService("Debris"):AddItem(refpart, 2)
  1559. end
  1560. do
  1561. if num <= 0 then
  1562. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1563. refpart.Anchored = true
  1564. refpart.CFrame = CFrame.new(pos)
  1565. if hit ~= nil then
  1566. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1567. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1568. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1569.  
  1570.  
  1571. MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  1572.  
  1573. end
  1574. game:GetService("Debris"):AddItem(refpart, 0)
  1575. end
  1576. end
  1577. until num <= 0
  1578. end
  1579. ))
  1580. end
  1581.  
  1582. shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  1583.  
  1584. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1585. local MainPos = partt.Position
  1586. local MainPos2 = mouse + SpreadVectors
  1587. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1588. local speed = 150
  1589. local num = 1
  1590. coroutine.resume(coroutine.create(function()
  1591.  
  1592. repeat
  1593. swait()
  1594. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1595. local mag = (MainPos - pos).magnitude
  1596. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
  1597. MainPos = MainPos + MouseLook.lookVector * speed
  1598. num = num - 1
  1599. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1600. if hit ~= nil then
  1601. num = 0
  1602. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1603. refpart.Anchored = true
  1604. refpart.CFrame = CFrame.new(pos)
  1605. game:GetService("Debris"):AddItem(refpart, 2)
  1606. end
  1607. do
  1608. if num <= 0 then
  1609. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1610. refpart.Anchored = true
  1611. refpart.CFrame = CFrame.new(pos)
  1612. if hit ~= nil then
  1613. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1614. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1615. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1616. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1617. MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  1618. end
  1619. game:GetService("Debris"):AddItem(refpart, 0)
  1620. end
  1621. end
  1622. until num <= 0
  1623. end
  1624. ))
  1625. end
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  1634.  
  1635. Hitpart3 = Instance.new("Part",HPart3)
  1636. RemoveOutlines(Hitpart3)
  1637. Hitpart3.Size = Vector3.new(1,1,1)
  1638. Hitpart3.CanCollide = false
  1639. HuW3 = Instance.new("Weld")
  1640. HuW3.Name = "GuW"
  1641. HuW3.Part0 = HPart3
  1642. HuW3.C0 = cn(Xv, Yv, Zv)
  1643. HuW3.C1 = cn(0, 0, 0)
  1644. HuW3.Part1 = Hitpart3
  1645. HuW3.Parent = HPart3
  1646. Hitpart3.Transparency = 1
  1647. game:GetService("Debris"):AddItem(Hitpart3, 20)
  1648. end
  1649.  
  1650. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  1651.  
  1652. Hitpart2 = Instance.new("Part",HPart2)
  1653. RemoveOutlines(Hitpart2)
  1654. Hitpart2.Size = Vector3.new(1,1,1)
  1655. Hitpart2.CanCollide = false
  1656. HuW2 = Instance.new("Weld")
  1657. HuW2.Name = "GuW"
  1658. HuW2.Part0 = HPart2
  1659. HuW2.C0 = cn(Xv, Yv, Zv)
  1660. HuW2.C1 = cn(0, 0, 0)
  1661. HuW2.Part1 = Hitpart2
  1662. HuW2.Parent = HPart2
  1663. Hitpart2.Transparency = 1
  1664. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1665. end
  1666.  
  1667.  
  1668. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1669.  
  1670. Hitpart = Instance.new("Part",HPart)
  1671. RemoveOutlines(Hitpart)
  1672. Hitpart.Size = Vector3.new(1,1,1)
  1673. Hitpart.CanCollide = false
  1674. HuW = Instance.new("Weld")
  1675. HuW.Name = "GuW"
  1676. HuW.Part0 = HPart
  1677. HuW.C0 = cn(Xv, Yv, Zv)
  1678. HuW.C1 = cn(0, 0, 0)
  1679. HuW.Part1 = Hitpart
  1680. HuW.Parent = HPart
  1681. Hitpart.Transparency = 1
  1682. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1683. MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
  1684.  
  1685. end
  1686. HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1687.  
  1688. Hitpart4 = Instance.new("Part",HPart)
  1689. RemoveOutlines(Hitpart4)
  1690. Hitpart4.Size = Vector3.new(1,1,1)
  1691. Hitpart4.CanCollide = false
  1692. HuW4 = Instance.new("Weld")
  1693. HuW4.Name = "HuW4"
  1694. HuW4.Part0 = HPart
  1695. HuW4.C0 = cn(Xv, Yv, Zv)
  1696. HuW4.C1 = cn(0, 0, 0)
  1697. HuW4.Part1 = Hitpart4
  1698. HuW4.Parent = HPart
  1699. Hitpart4.Transparency = 1
  1700. game:GetService("Debris"):AddItem(Hitpart4, 1.5)
  1701. MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
  1702.  
  1703. end
  1704.  
  1705.  
  1706. HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
  1707.  
  1708. Hitboxpart = Instance.new("Part",Character)
  1709. RemoveOutlines(Hitboxpart)
  1710. Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
  1711. Hitboxpart.CanCollide = false
  1712. Hitboxpart.Transparency = 1
  1713. Hitboxpart.Anchored = true
  1714. Hitboxpart.CFrame = Pose
  1715. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1716. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1717.  
  1718. end
  1719.  
  1720.  
  1721. wait2 = false
  1722.  
  1723.  
  1724. combo = 1
  1725.  
  1726.  
  1727.  
  1728.  
  1729. duljump = false
  1730. duljump2 = false
  1731. jumpatck = false
  1732. mouse.KeyDown:connect(function(k)
  1733. if k == "0" then
  1734.  
  1735. Runkey = true
  1736.  
  1737. end
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748. if k == "e" and attack == false then
  1749. attack = true
  1750.  
  1751. Humanoid.WalkSpeed = 30
  1752.  
  1753. CreateSound("http://www.roblox.com/asset/?id=130768126", Torso, 2, 1)
  1754.  
  1755. for i = 0, 2, 0.1 do
  1756. swait()
  1757.  
  1758. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1759. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1760. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1761. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1762. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1763. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1764. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1765.  
  1766.  
  1767.  
  1768. end
  1769.  
  1770. for i = 0, 4, 0.1 do
  1771. swait()
  1772.  
  1773. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1774. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1775. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05)
  1776. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05)
  1777. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1778. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1779. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1780.  
  1781.  
  1782.  
  1783. end
  1784. for i = 0, 1 do
  1785. for i = 0, 1, 0.1 do
  1786. swait()
  1787.  
  1788. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1789. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1790. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1791. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1792. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1793. LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1794. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1795.  
  1796.  
  1797.  
  1798. end
  1799. for i = 0, 1, 0.1 do
  1800. swait()
  1801.  
  1802. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1803. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1804. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1805. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1806. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1807. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1808. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1809.  
  1810.  
  1811.  
  1812. end
  1813. end
  1814.  
  1815. Humanoid.WalkSpeed = 30
  1816.  
  1817. attack = false
  1818.  
  1819.  
  1820.  
  1821.  
  1822. end
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840. end)
  1841. hitwait = false
  1842. function onTouch(part)
  1843.  
  1844. local humanoid = part.Parent:findFirstChild("Humanoid")
  1845. local model = part.Parent
  1846. local torso = part.Parent:FindFirstChild("Torso")
  1847. local head = part.Parent:findFirstChild("Head")
  1848. local leftleg = part.Parent:findFirstChild("Left Leg")
  1849. local rightleg = part.Parent:findFirstChild("Right Leg")
  1850. local leftarm = part.Parent:findFirstChild("Left Arm")
  1851. local rightarm = part.Parent:findFirstChild("Right Arm")
  1852.  
  1853. if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
  1854.  
  1855. hitwait = true
  1856.  
  1857.  
  1858.  
  1859.  
  1860. if (humanoid ~=nil) and humanoid.Health >0.01 and Torsovelocity > 1 then
  1861.  
  1862. if IKM == true then
  1863. Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)
  1864. Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)
  1865. model:BreakJoints()
  1866.  
  1867. else
  1868. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
  1869. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)
  1870. MagniDamage(FrontPart, 6.5, 6, 6, .3, "Knockdown")
  1871.  
  1872. end
  1873.  
  1874. attack = true
  1875. Humanoid.WalkSpeed = 0
  1876. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
  1877.  
  1878. game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
  1879.  
  1880. for i = 0, .5, 0.1 do
  1881. swait()
  1882.  
  1883. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
  1884. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1885. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1886. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1887. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1888. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1889. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)
  1890.  
  1891.  
  1892.  
  1893. end
  1894.  
  1895.  
  1896. Humanoid.WalkSpeed = 30
  1897. end
  1898. attack = false
  1899. wait(.08)
  1900. hitwait = false
  1901. end
  1902.  
  1903. end
  1904. FrontPart.Touched:connect(onTouch)
  1905.  
  1906.  
  1907.  
  1908. mouse.KeyUp:connect(function(k)
  1909. if k == "0"then
  1910. Runkey = false
  1911.  
  1912. end
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919. end)
  1920.  
  1921. humHsave = Humanoid.Health
  1922. function GainCharge(Humanoid)
  1923. if Humanoid.Health == 0 then
  1924. equipped = false
  1925. end
  1926. if blocking == true then
  1927.  
  1928. humDsave = Humanoid.Health
  1929. humDsave = humHsave - humDsave
  1930. if humDsave >0.01 then
  1931.  
  1932. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)
  1933. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1, 0.02,2)
  1934. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  1935. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  1936. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  1937. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  1938. humDsave = humDsave/3
  1939. end
  1940. if humDsave <0 then
  1941.  
  1942.  
  1943. Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
  1944. --[[
  1945. BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.1,2)
  1946. BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  1947. BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  1948. BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  1949. BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  1950. --]]
  1951. humDsave = humDsave*2.5
  1952. end
  1953.  
  1954. humHsave = humHsave - humDsave
  1955.  
  1956.  
  1957.  
  1958.  
  1959. end
  1960.  
  1961. end
  1962.  
  1963. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  1964.  
  1965.  
  1966. OnDeath = function()
  1967.  
  1968. equipped = false
  1969.  
  1970.  
  1971.  
  1972. end
  1973.  
  1974. Humanoid.Died:connect(function()OnDeath(Character)end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement