Advertisement
coolgoldboy166

king kong(?

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