Advertisement
HoneyBadger69

Untitled

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