Advertisement
HoneyBadger69

Untitled

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