Advertisement
Guest User

Untitled

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