Advertisement
coolgoldboy166

AUTO CHOCADOR :D

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