Advertisement
marioisdabomb

fe car test

Dec 2nd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 164.24 KB | None | 0 0
  1. --[[screw bumper cars now we have...
  2.  
  3.  
  4.  
  5.  
  6. A REAL FUCKING CAR HOLY SHIT!!!!1!1]]--
  7.  
  8. -- This script has been converted to FE by iPxter
  9.  
  10.  
  11. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  12. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  13. do
  14. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  15. script.Parent = Player.Character
  16.  
  17. --RemoteEvent for communicating
  18. local Event = Instance.new("RemoteEvent")
  19. Event.Name = "UserInput_Event"
  20.  
  21. --Fake event to make stuff like Mouse.KeyDown work
  22. local function fakeEvent()
  23. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  24. t.connect = t.Connect
  25. return t
  26. end
  27.  
  28. --Creating fake input objects with fake variables
  29. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  30. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  31. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  32. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  33. end}
  34. --Merged 2 functions into one by checking amount of arguments
  35. CAS.UnbindAction = CAS.BindAction
  36.  
  37. --This function will trigger the events that have been :Connect()'ed
  38. local function te(self,ev,...)
  39. local t = m[ev]
  40. if t and t._fakeEvent and t.Function then
  41. t.Function(...)
  42. end
  43. end
  44. m.TrigEvent = te
  45. UIS.TrigEvent = te
  46.  
  47. Event.OnServerEvent:Connect(function(plr,io)
  48. if plr~=Player then return end
  49. if io.isMouse then
  50. m.Target = io.Target
  51. m.Hit = io.Hit
  52. else
  53. local b = io.UserInputState == Enum.UserInputState.Begin
  54. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  55. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  56. end
  57. for _,t in pairs(CAS.Actions) do
  58. for _,k in pairs(t.Keys) do
  59. if k==io.KeyCode then
  60. t.Function(t.Name,io.UserInputState,io)
  61. end
  62. end
  63. end
  64. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  65. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  66. end
  67. end)
  68. Event.Parent = NLS([==[
  69. local Player = game:GetService("Players").LocalPlayer
  70. local Event = script:WaitForChild("UserInput_Event")
  71.  
  72. local UIS = game:GetService("UserInputService")
  73. local input = function(io,a)
  74. if a then return end
  75. --Since InputObject is a client-side instance, we create and pass table instead
  76. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  77. end
  78. UIS.InputBegan:Connect(input)
  79. UIS.InputEnded:Connect(input)
  80.  
  81. local Mouse = Player:GetMouse()
  82. local h,t
  83. --Give the server mouse data 30 times every second, but only if the values changed
  84. --If player is not moving their mouse, client won't fire events
  85. while wait(1/30) do
  86. if h~=Mouse.Hit or t~=Mouse.Target then
  87. h,t=Mouse.Hit,Mouse.Target
  88. Event:FireServer({isMouse=true,Target=t,Hit=h})
  89. end
  90. end]==],Player.Character)
  91. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  92. end
  93. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  94. secondcolor = "Really black"
  95.  
  96. wait(1 / 60)
  97. Effects = { }
  98. local Player = owner
  99. local Character = Player.Character
  100. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  101. local LeftArm = Character["Left Arm"]
  102. local RightArm = Character["Right Arm"]
  103. local LeftLeg = Character["Left Leg"]
  104. local RightLeg = Character["Right Leg"]
  105. local Head = Character.Head
  106. local Torso = Character.Torso
  107. local cam = game.Workspace.CurrentCamera
  108. local RootPart = Character.HumanoidRootPart
  109. local RootJoint = RootPart.RootJoint
  110. local equipped = true
  111. local attack = false
  112. local Anim = 'Idle'
  113. local idle = 0
  114. local attacktype = 1
  115. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  116. local velocity = RootPart.Velocity.y
  117. local sine = 0
  118. local change = 1
  119. local grabbed = false
  120. local cn = CFrame.new
  121. local mr = math.rad
  122. local angles = CFrame.Angles
  123. local ud = UDim2.new
  124. local c3 = Color3.new
  125. local dir = {w = 0, s = 0, a = 0, d = 0}
  126. Climbanim = false
  127. Runkey=false
  128. firemode = false
  129. inair = false
  130. blocking=false
  131. humHsave=0
  132. humDsave=0
  133. extralock=true
  134. lasthit = nil
  135. IKM = false
  136. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  137. ff.Visible = false
  138. HMDX = Humanoid.MoveDirection.X/3
  139. HMDZ = Humanoid.MoveDirection.Z/3
  140. local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
  141. ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)),
  142. ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)),
  143. ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)),
  144. ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)),
  145. ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)),
  146. ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)),
  147. ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))}
  148. local s = Instance.new("Sound",Character)
  149. s.Name = "BumperCarSound"
  150. s.SoundId = "http://www.roblox.com/asset/?id=532147820"
  151. s.Pitch = .7
  152. s.Volume = 5
  153. s.Looped = true
  154. s.archivable = false
  155. s.Parent = Character
  156. s:play()
  157. local airtime = Instance.new("Sound",Character)
  158. airtime.Name = "airtime"
  159. airtime.SoundId = "http://www.roblox.com/asset/?id=892076107"
  160. airtime.Volume = 5
  161. airtime.archivable = false
  162. airtime.Parent = Character
  163. sflon = true
  164. bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
  165. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  166. if attack == true then
  167. bg2.D = 0
  168. bg2.P = 0
  169. bg2.maxTorque = Vector3.new(0,0,0)
  170. end
  171. if attack == false then
  172. bg2.D = 100
  173. bg2.P = 9999
  174. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  175. 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)
  176.  
  177. end
  178. end)--]]
  179.  
  180. New = function(Object, Parent, Name, Data)
  181. local Object = Instance.new(Object)
  182. for Index, Value in pairs(Data or {}) do
  183. Object[Index] = Value
  184. end
  185. Object.Parent = Parent
  186. Object.Name = Name
  187. return Object
  188. end
  189.  
  190. BumperCar = New("Model",Workspace,"BumperCar",{})
  191. SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),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.5,0.5,0.5),})
  192. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),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.7,0.7,0.7),})
  193. wheel = New("Part",BumperCar,"wheels",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 8.15000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  194. wheel2 = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  195. body = New("Part",BumperCar,"car",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
  196. glass = New("Part",BumperCar,"glass",{BrickColor = BrickColor.new("Pastel light blue"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.45000019, -35.7631157, 0.001, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,})
  197. inside = New("Part",BumperCar,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  198. grille = New("Part",BumperCar,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.1,0.1,0.1),})
  199. plate = New("Part",BumperCar,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -44.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  200. rl = New("Part",BumperCar,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
  201. hl = New("Part",BumperCar,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  202. ep = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  203. hitbox = New("Part",BumperCar,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.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.5,0.5,0.5),})
  204. hitbox2 = New("Part",BumperCar,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.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.5,0.5,0.5),})
  205.  
  206. 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, -31.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,})
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219. local mesh2 = Instance.new("FileMesh")
  220. mesh2.Parent = body
  221. mesh2.MeshId = "rbxassetid://1432737948"
  222. local mesh = Instance.new("FileMesh")
  223. mesh.Parent = wheel
  224. mesh.MeshId = "rbxassetid://1432629613"
  225. local mesh3 = Instance.new("FileMesh")
  226. mesh3.Parent = glass
  227. mesh3.MeshId = "rbxassetid://1432810983"
  228. local mesh4 = Instance.new("FileMesh")
  229. mesh4.Parent = inside
  230. mesh4.MeshId = "rbxassetid://1432877497"
  231. local mesh5 = Instance.new("FileMesh")
  232. mesh5.Parent = grille
  233. mesh5.MeshId = "rbxassetid://1432898984"
  234. local mesh6 = Instance.new("FileMesh")
  235. mesh6.Parent = plate
  236. mesh6.MeshId = "rbxassetid://1432917470"
  237. local mesh7 = Instance.new("FileMesh")
  238. mesh7.Parent = rl
  239. mesh7.MeshId = "rbxassetid://1432942116"
  240. local mesh8 = Instance.new("FileMesh")
  241. mesh8.Parent = hl
  242. mesh8.MeshId = "rbxassetid://1432958104"
  243. local Light = Instance.new("SpotLight",hl)
  244. Light.Angle = 90;
  245. Light.Brightness = 100;
  246. Light.Face = Enum.NormalId.Left;
  247. Light.Range = 30;
  248. local lt2 = Instance.new('PointLight',rl)
  249. lt2.Range = 8
  250. lt2.Brightness = 100
  251. lt2.Color = Color3.new(1,0,0)
  252. lt2.Enabled = true
  253. lt2.Shadows = true
  254. ep.Transparency = 1
  255. particle = Instance.new("ParticleEmitter",ep)
  256. particle.Enabled = false
  257. particle.EmissionDirection = "Bottom"
  258. particle.Lifetime = NumberRange.new(2.5,2.501)
  259. particle.Rate = 1500
  260. particle.Texture = "rbxassetid://241629053"
  261. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  262.  
  263. particle.Size = NumberSequence.new(1.4,1.41)
  264. local all,last = {}
  265. function scan(p)
  266. for _,v in pairs(p:GetChildren()) do
  267. if (v:IsA("BasePart")) then
  268. if (last) then
  269. local w = Instance.new("Weld")
  270. w.Part0,w.Part1 = last,v
  271. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  272. w.Parent = last
  273. end
  274. table.insert(all,v)
  275. last = v
  276. end
  277. scan(v)
  278. end
  279. end
  280. scan(BumperCar)
  281.  
  282.  
  283. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  284. wheel2.Transparency = 1
  285. wheel2.CanCollide = true
  286. hitbox.CanCollide = true
  287. hitbox.Transparency = 1
  288. hitbox2.CanCollide = true
  289. hitbox2.Transparency = 1
  290. BumperCar.Parent = Character
  291.  
  292. local Services = {
  293.  
  294.  
  295. SoundService = game:GetService("SoundService");
  296. Players = game:GetService("Players");
  297. Debris = game:GetService("Debris");
  298. Workspace = game:GetService("Workspace");
  299. Lighting = game:GetService("Lighting");
  300. HttpService = game:GetService("HttpService");
  301. InsertService = game:GetService("InsertService");
  302.  
  303. }
  304.  
  305. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  306. Humanoid.Animator:Destroy()
  307. Character.Animate:Destroy()
  308.  
  309. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  310. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  311. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  312.  
  313.  
  314.  
  315. SWW = Instance.new("Weld")
  316. SWW.Name = "SWW"
  317. SWW.Part0 = Torso
  318. SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
  319. SWW.C1 = cn(0, 0, 0)
  320. SWW.Part1 = SwHandle
  321. SWW.Parent = Torso
  322.  
  323. RSH, LSH = nil, nil
  324.  
  325. RW = Instance.new("Weld")
  326. LW = Instance.new("Weld")
  327.  
  328. RH = Torso["Right Hip"]
  329. LH = Torso["Left Hip"]
  330.  
  331. RSH = Torso["Right Shoulder"]
  332. LSH = Torso["Left Shoulder"]
  333.  
  334. RSH.Parent = nil
  335. LSH.Parent = nil
  336.  
  337. RW.Name = "RW"
  338. RW.Part0 = Torso
  339. RW.C0 = cn(1.5, 0.5, 0)
  340. RW.C1 = cn(0, 0.5, 0)
  341. RW.Part1 = RightArm
  342. RW.Parent = Torso
  343.  
  344. LW.Name = "LW"
  345. LW.Part0 = Torso
  346. LW.C0 = cn(-1.5, 0.5, 0)
  347. LW.C1 = cn(0, 0.5, 0)
  348. LW.Part1 = LeftArm
  349. LW.Parent = Torso
  350.  
  351. function clerp(a, b, t)
  352. local qa = {
  353. QuaternionFromCFrame(a)
  354. }
  355. local qb = {
  356. QuaternionFromCFrame(b)
  357. }
  358. local ax, ay, az = a.x, a.y, a.z
  359. local bx, by, bz = b.x, b.y, b.z
  360. local _t = 1 - t
  361. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  362. end
  363.  
  364. function QuaternionFromCFrame(cf)
  365. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  366. local trace = m00 + m11 + m22
  367. if trace > 0 then
  368. local s = math.sqrt(1 + trace)
  369. local recip = 0.5 / s
  370. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  371. else
  372. local i = 0
  373. if m11 > m00 then
  374. i = 1
  375. end
  376. if m22 > (i == 0 and m00 or m11) then
  377. i = 2
  378. end
  379. if i == 0 then
  380. local s = math.sqrt(m00 - m11 - m22 + 1)
  381. local recip = 0.5 / s
  382. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  383. elseif i == 1 then
  384. local s = math.sqrt(m11 - m22 - m00 + 1)
  385. local recip = 0.5 / s
  386. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  387. elseif i == 2 then
  388. local s = math.sqrt(m22 - m00 - m11 + 1)
  389. local recip = 0.5 / s
  390. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  391. end
  392. end
  393. end
  394.  
  395. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  396. local xs, ys, zs = x + x, y + y, z + z
  397. local wx, wy, wz = w * xs, w * ys, w * zs
  398. local xx = x * xs
  399. local xy = x * ys
  400. local xz = x * zs
  401. local yy = y * ys
  402. local yz = y * zs
  403. local zz = z * zs
  404. 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))
  405. end
  406.  
  407. function QuaternionSlerp(a, b, t)
  408. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  409. local startInterp, finishInterp;
  410. if cosTheta >= 0.0001 then
  411. if (1 - cosTheta) > 0.0001 then
  412. local theta = math.acos(cosTheta)
  413. local invSinTheta = 1 / math.sin(theta)
  414. startInterp = math.sin((1 - t) * theta) * invSinTheta
  415. finishInterp = math.sin(t * theta) * invSinTheta
  416. else
  417. startInterp = 1 - t
  418. finishInterp = t
  419. end
  420. else
  421. if (1 + cosTheta) > 0.0001 then
  422. local theta = math.acos(-cosTheta)
  423. local invSinTheta = 1 / math.sin(theta)
  424. startInterp = math.sin((t - 1) * theta) * invSinTheta
  425. finishInterp = math.sin(t * theta) * invSinTheta
  426. else
  427. startInterp = t - 1
  428. finishInterp = t
  429. end
  430. end
  431. 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
  432. end
  433.  
  434. function swait(num)
  435. if num == 0 or num == nil then
  436. game:service'RunService'.RenderStepped:wait(0)
  437. else
  438. for i = 0, num do
  439. game:service'RunService'.RenderStepped:wait(0)
  440. end
  441. end
  442. end
  443.  
  444. local RbxUtility = LoadLibrary("RbxUtility")
  445. local Create = RbxUtility.Create
  446.  
  447. function RemoveOutlines(part)
  448. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  449. end
  450.  
  451. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  452. local Part = Create("Part"){
  453. formFactor = FormFactor,
  454. Parent = Parent,
  455. Reflectance = Reflectance,
  456. Transparency = Transparency,
  457. CanCollide = false,
  458. Locked = true,
  459. BrickColor = BrickColor.new(tostring(BColor)),
  460. Name = Name,
  461. Size = Size,
  462. Material = Material,
  463. }
  464. RemoveOutlines(Part)
  465. return Part
  466. end
  467.  
  468. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  469. local Msh = Create(Mesh){
  470. Parent = Part,
  471. Offset = OffSet,
  472. Scale = Scale,
  473. }
  474. if Mesh == "SpecialMesh" then
  475. Msh.MeshType = MeshType
  476. Msh.MeshId = MeshId
  477. end
  478. return Msh
  479. end
  480.  
  481. function CreateWeld(Parent, Part0, Part1, C0, C1)
  482. local Weld = Create("Weld"){
  483. Parent = Parent,
  484. Part0 = Part0,
  485. Part1 = Part1,
  486. C0 = C0,
  487. C1 = C1,
  488. }
  489. return Weld
  490. end
  491.  
  492. function rayCast(Position, Direction, Range, Ignore)
  493. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  494. end
  495.  
  496. function CreateSound(id, par, vol, pit)
  497. coroutine.resume(coroutine.create(function()
  498. local sou = Instance.new("Sound", par or workspace)
  499. sou.Volume = vol
  500. sou.Pitch = pit or 1
  501. sou.SoundId = id
  502. wait()
  503. sou:play()
  504. game:GetService("Debris"):AddItem(sou, 6)
  505. end))
  506. end
  507. function CreateSong(id, par, vol, pit)
  508. coroutine.resume(coroutine.create(function()
  509. sou2 = Instance.new("Sound", par or workspace)
  510. sou2.Volume = vol
  511. sou2.Pitch = 1
  512. sou2.SoundId = id
  513. wait()
  514. sou2:play()
  515. sou2.Looped = true
  516. end))
  517. end
  518.  
  519. local function getclosest(obj, distance)
  520. local last, lastx = distance + 1
  521. for i, v in pairs(workspace:GetChildren()) do
  522. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  523. local t = v.Torso
  524. local dist = (t.Position - obj.Position).magnitude
  525. if dist <= distance then
  526. if dist < last then
  527. last = dist
  528. lastx = v
  529. end
  530. end
  531. end
  532. end
  533. return lastx
  534. end
  535.  
  536. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  537. for i, v in pairs(hit:GetChildren()) do
  538. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  539. local find = v:FindFirstChild("Hitz")
  540. if not find then
  541. if v.Parent:findFirstChild("Head") then
  542. local BillG = Create("BillboardGui"){
  543. Parent = v.Parent.Head,
  544. Size = UDim2.new(1, 0, 1, 0),
  545. Adornee = v.Parent.Head,
  546. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  547. }
  548. local TL = Create("TextLabel"){
  549. Parent = BillG,
  550. Size = UDim2.new(3, 3, 3, 3),
  551. BackgroundTransparency = 1,
  552. Text = tostring(damage).."-",
  553. TextColor3 = Color1.Color,
  554. TextStrokeColor3 = Color2.Color,
  555. TextStrokeTransparency = 0,
  556. TextXAlignment = Enum.TextXAlignment.Center,
  557. TextYAlignment = Enum.TextYAlignment.Center,
  558. FontSize = Enum.FontSize.Size18,
  559. Font = "ArialBold",
  560. }
  561. coroutine.resume(coroutine.create(function()
  562. wait(1)
  563. for i = 0, 1, .1 do
  564. wait(.1)
  565. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  566. end
  567. BillG:Destroy()
  568. end))
  569. end
  570. v.Health = v.Health - damage
  571. local bool = Create("BoolValue"){
  572. Parent = v,
  573. Name = 'Hitz',
  574. }
  575. if HSound ~= nil and HPitch ~= nil then
  576. CreateSound(HSound, hit, 1, HPitch)
  577. end
  578. game:GetService("Debris"):AddItem(bool, cooldown)
  579. end
  580. end
  581. end
  582. end
  583.  
  584.  
  585. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  586. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  587. prt.Anchored = true
  588. prt.CFrame = cframe
  589. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  590. game:GetService("Debris"):AddItem(prt, 10)
  591. if Type == 1 or Type == nil then
  592. table.insert(Effects, {
  593. prt,
  594. "Block1",
  595. delay,
  596. x3,
  597. y3,
  598. z3,
  599. msh
  600. })
  601. elseif Type == 2 then
  602. table.insert(Effects, {
  603. prt,
  604. "Block2",
  605. delay,
  606. x3,
  607. y3,
  608. z3,
  609. msh
  610. })
  611. elseif Type == 3 then
  612. table.insert(Effects, {
  613. prt,
  614. "Block3",
  615. delay,
  616. x3,
  617. y3,
  618. z3,
  619. msh
  620. })
  621. end
  622. end
  623.  
  624. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  625. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  626. prt.Anchored = true
  627. prt.CFrame = cframe
  628. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  629. game:GetService("Debris"):AddItem(prt, 10)
  630. table.insert(Effects, {
  631. prt,
  632. "Cylinder",
  633. delay,
  634. x3,
  635. y3,
  636. z3,
  637. msh
  638. })
  639. end
  640.  
  641. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  642. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  643. prt.Anchored = true
  644. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  645. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  646. game:GetService("Debris"):AddItem(prt, 10)
  647. table.insert(Effects, {
  648. prt,
  649. "Cylinder",
  650. delay,
  651. x3,
  652. y3,
  653. z3,
  654. msh
  655. })
  656. end
  657.  
  658. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  659. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  660. prt.Anchored = true
  661. prt.CFrame = cframe
  662. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  663. game:GetService("Debris"):AddItem(prt, 10)
  664. table.insert(Effects, {
  665. prt,
  666. "Cylinder",
  667. delay,
  668. x3,
  669. y3,
  670. z3,
  671. msh
  672. })
  673. end
  674.  
  675. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  676. local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  677. prt.Anchored = true
  678. prt.CFrame = cframe
  679. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  680. game:GetService("Debris"):AddItem(prt, 10)
  681. table.insert(Effects, {
  682. prt,
  683. "Cylinder",
  684. delay,
  685. x3,
  686. y3,
  687. z3,
  688. msh
  689. })
  690. end
  691.  
  692. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  693. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  694. prt.Anchored = true
  695. prt.CFrame = cframe
  696. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  697. game:GetService("Debris"):AddItem(prt, 10)
  698. table.insert(Effects, {
  699. prt,
  700. "Cylinder",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. end
  708.  
  709. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  710. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  711. prt.Anchored = true
  712. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  713. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  714. local num = math.random(10, 50) / 1000
  715. game:GetService("Debris"):AddItem(prt, 10)
  716. table.insert(Effects, {
  717. prt,
  718. "Shatter",
  719. num,
  720. prt.CFrame,
  721. math.random() - math.random(),
  722. 0,
  723. math.random(50, 100) / 100
  724. })
  725. end
  726.  
  727.  
  728.  
  729.  
  730. for i = 0, 1, 0.05 do
  731. swait()
  732. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  733. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  734. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  735. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  736. if Torsovelocity > 2 then
  737. 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)
  738. 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)
  739. 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)
  740. elseif Torsovelocity < 1 then
  741. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  742. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  743. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  744. end
  745. end
  746. attack = false
  747.  
  748.  
  749.  
  750. game:GetService'RunService'.Stepped:connect(function()
  751. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  752. velocity = RootPart.Velocity.y
  753. sine = sine + change
  754. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  755. if equipped == true or equipped == false then
  756. if RootPart.Velocity.y > -1 and hit == nil then
  757. Anim = "Jump"
  758. inair = true
  759.  
  760. if attack == false then
  761. s.Pitch = 1
  762. s.Volume = 5
  763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  764. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  765. 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)
  766. 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)
  767. 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)
  768. 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)
  769. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  770. end
  771. elseif RootPart.Velocity.y < -1 and hit == nil then
  772. Anim = "Fall"
  773. inair = true
  774.  
  775. if attack == false then
  776. s.Pitch = .7
  777. s.Volume = 5
  778. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  779. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  780. 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)
  781. 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)
  782. 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)
  783. 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)
  784. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  785. end
  786. elseif Torsovelocity < 1 and hit ~= nil then
  787. Anim = "Idle"
  788.  
  789. inair = false
  790. if attack == false then
  791. s.Pitch = .7
  792. s.Volume = 5
  793. change = 0.8
  794. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  795. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  796. 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)
  797. 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)
  798. 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)
  799. 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)
  800. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  801. end --]]
  802.  
  803. elseif Torsovelocity > 1 and hit ~= nil then
  804. Anim = "Walk"
  805. inair = false
  806.  
  807. if attack == false and Runkey == true then
  808. s.Pitch = 1.2
  809. s.Volume = 5
  810.  
  811. change = 1
  812. Humanoid.WalkSpeed = 60
  813. Humanoid.JumpPower = 105
  814. 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)
  815. 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)
  816. 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)
  817. 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)
  818. 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)
  819. 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)
  820. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)
  821. end
  822. if attack == false and Runkey == false then
  823. s.Pitch = .8
  824. s.Volume = 5
  825. change = 0.65
  826. Humanoid.WalkSpeed = 30
  827. Humanoid.JumpPower = 50
  828. 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)
  829. 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)
  830. 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)
  831. 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)
  832. 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)
  833. 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)
  834. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  835. end
  836.  
  837. function onClimbing(speed)
  838. if attack == false then
  839. attack = true
  840. Climbanim= true
  841. Humanoid.WalkSpeed = 14
  842. while Climbanim == true do
  843. for i = 0, 0, 0.1 do
  844. swait()
  845.  
  846. change = 0.5
  847.  
  848.  
  849.  
  850. if RootPart.Velocity.y > .01 then
  851. s.Pitch = .9
  852. s.Volume = 5
  853. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
  854. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  855. 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)
  856. 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)
  857. 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)
  858. 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)
  859. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  860. end
  861.  
  862.  
  863.  
  864.  
  865. if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5 then
  866. s.Pitch = .7
  867. s.Volume = 5
  868. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
  869. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  870. 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)
  871. 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)
  872. 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)
  873. 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)
  874. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  875. end
  876.  
  877.  
  878. if RootPart.Velocity.y < -1 then
  879. s.Pitch = .9
  880. s.Volume = 5
  881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
  882. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  883. 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)
  884. 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)
  885. 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)
  886. 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)
  887. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) end
  888.  
  889. end
  890. if Torsovelocity > 1 then
  891. Climbanim = false
  892. end
  893. end
  894. attack = false
  895. end
  896. end
  897. Humanoid.Climbing:connect(onClimbing)
  898.  
  899.  
  900.  
  901. end
  902. end
  903.  
  904.  
  905. if #Effects > 0 then
  906. for e = 1, #Effects do
  907. if Effects[e] ~= nil then
  908. local Thing = Effects[e]
  909. if Thing ~= nil then
  910. local Part = Thing[1]
  911. local Mode = Thing[2]
  912. local Delay = Thing[3]
  913. local IncX = Thing[4]
  914. local IncY = Thing[5]
  915. local IncZ = Thing[6]
  916. if Thing[1].Transparency <= 1 then
  917. if Thing[2] == "Block1" then
  918. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  919. local Mesh = Thing[1].Mesh
  920. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  921. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  922. elseif Thing[2] == "Block2" then
  923. Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
  924. local Mesh = Thing[7]
  925. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  926. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  927. elseif Thing[2] == "Block3" then
  928. 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)
  929. local Mesh = Thing[7]
  930. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  931. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  932. elseif Thing[2] == "Cylinder" then
  933. local Mesh = Thing[1].Mesh
  934. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  936. elseif Thing[2] == "Blood" then
  937. local Mesh = Thing[7]
  938. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  939. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  940. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  941. elseif Thing[2] == "Elec" then
  942. local Mesh = Thing[1].Mesh
  943. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  944. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  945. elseif Thing[2] == "Disappear" then
  946. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  947. elseif Thing[2] == "Shatter" then
  948. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  949. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  950. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  951. Thing[6] = Thing[6] + Thing[5]
  952. end
  953. else
  954. Part.Parent = nil
  955. table.remove(Effects, e)
  956. end
  957. end
  958. end
  959. end
  960. end
  961. end)
  962.  
  963.  
  964. Effects = {
  965. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  966.  
  967. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  968. prt.Anchored = true
  969. prt.CFrame = cframe
  970. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  971. game:GetService("Debris"):AddItem(prt, 10)
  972. if Type == 1 or Type == nil then
  973. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  974. else
  975. if Type == 2 then
  976. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  977. else
  978. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  979. end
  980. end
  981. end
  982. }
  983. ,
  984. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  985.  
  986. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  987. prt.Anchored = true
  988. prt.CFrame = cframe
  989. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  990. game:GetService("Debris"):AddItem(prt, 10)
  991. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  992. end
  993. }
  994. ,
  995. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  996.  
  997. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  998. prt.Anchored = true
  999. prt.CFrame = cframe
  1000. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1001. game:GetService("Debris"):AddItem(prt, 10)
  1002. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1003. end
  1004. }
  1005. ,
  1006. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1007.  
  1008. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1009. prt.Anchored = true
  1010. prt.CFrame = cframe
  1011. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
  1012. game:GetService("Debris"):AddItem(prt, 10)
  1013. table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
  1014. end
  1015. }
  1016. ,
  1017. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1018.  
  1019. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1020. prt.Anchored = true
  1021. prt.CFrame = cframe
  1022. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1023. game:GetService("Debris"):AddItem(prt, 10)
  1024. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1025. end
  1026. }
  1027. ,
  1028. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  1029.  
  1030. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1031. prt.Anchored = true
  1032. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1033. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1034. local num = math.random(10, 50) / 1000
  1035. game:GetService("Debris"):AddItem(prt, 10)
  1036. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1037. end
  1038. }
  1039. }
  1040.  
  1041.  
  1042.  
  1043. RemoveOutlines = function(part)
  1044.  
  1045. part.TopSurface = 10
  1046. end
  1047.  
  1048. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1049.  
  1050. 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})
  1051. RemoveOutlines(Part)
  1052. return Part
  1053. end
  1054.  
  1055. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1056.  
  1057. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1058. if Mesh == "SpecialMesh" then
  1059. Msh.MeshType = MeshType
  1060. Msh.MeshId = MeshId
  1061. end
  1062. return Msh
  1063. end
  1064.  
  1065. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  1066.  
  1067. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1068. return Weld
  1069. end
  1070.  
  1071.  
  1072.  
  1073.  
  1074. WSHM = {'White',"Pastel light red"}
  1075. WSH = WSHM[math.random(1,#WSHM)]
  1076.  
  1077.  
  1078. IcePartFunk = function(HPart,aria,Min,Max)
  1079.  
  1080. IcePart = Instance.new("Part",HPart)
  1081. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1082. IcePart.CanCollide = false
  1083. IuW = Instance.new("Weld")
  1084. IuW.Name = "GuW"
  1085. IuW.Part0 = HPart
  1086. 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))
  1087. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  1088. IuW.Part1 = IcePart
  1089. IuW.Parent = HPart
  1090. IcePart.Transparency = .85
  1091. IcePart.Material= "Neon"
  1092. WSH = WSHM[math.random(1,#WSHM)]
  1093. IcePart.BrickColor = BrickColor.new(""..WSH)
  1094.  
  1095. RemoveOutlines(IcePart)
  1096. game:GetService("Debris"):AddItem(IuW, 4)
  1097. game:GetService("Debris"):AddItem(IcePart, 6)
  1098.  
  1099.  
  1100. end
  1101. --[[
  1102. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
  1103.  
  1104. IcePart2 = Instance.new("Part",HPart)
  1105. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1106. IcePart2.CanCollide = false
  1107. RemoveOutlines(IcePart2)
  1108. IcePart2.Anchored = true
  1109.  
  1110.  
  1111.  
  1112. IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. IcePart2.Transparency = .85
  1120. IcePart2.Material= "Neon"
  1121.  
  1122. IcePart2.BrickColor = BrickColor.new(""..color)
  1123.  
  1124.  
  1125.  
  1126. game:GetService("Debris"):AddItem(IcePart2, 6)
  1127.  
  1128.  
  1129. end
  1130. --]]
  1131. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
  1132.  
  1133. IcePart2 = Instance.new("Part",HPart)
  1134. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1135. IcePart2.CanCollide = false
  1136. RemoveOutlines(IcePart2)
  1137. IcePart2.Anchored = true
  1138. game:GetService("Debris"):AddItem(IcePart2, .4)
  1139. IcePart2.Transparency = .3
  1140. IcePart2.Material= "Neon"
  1141. IcePart2.BrickColor = BrickColor.new(""..color)
  1142.  
  1143. 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)))
  1144. for i = 0,num do
  1145. if num > 1 then
  1146. GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)
  1147. end
  1148. end
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160. end
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166. SpikeMeshId = 1033714
  1167. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1168.  
  1169.  
  1170. local Part = Instance.new("Part", Parent)
  1171. Part.Name = Name
  1172. Part.BrickColor = BrickColor.new(Color)
  1173. Part.Size = Size
  1174. Part.Material = Material
  1175. Part.Transparency = Transparency
  1176. Part.CanCollide = false
  1177. RemoveOutlines(Part)
  1178.  
  1179. local Mesh = Instance.new("SpecialMesh", Part)
  1180. Mesh.MeshType = "Sphere"
  1181. Mesh.Scale = Scale
  1182.  
  1183. return Mesh and Part
  1184.  
  1185. end
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194. CFuncs = {
  1195. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1196.  
  1197. 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})
  1198. RemoveOutlines(Part)
  1199. return Part
  1200. end
  1201. }
  1202. ,
  1203. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1204.  
  1205. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1206. if Mesh == "SpecialMesh" then
  1207. Msh.MeshType = MeshType
  1208. Msh.MeshId = MeshId
  1209. end
  1210. return Msh
  1211. end
  1212. }
  1213. ,
  1214. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1215.  
  1216. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1217. if Mesh == "SpecialMesh" then
  1218. Msh.MeshType = MeshType
  1219. Msh.MeshId = MeshId
  1220. end
  1221. return Msh
  1222. end
  1223. }
  1224. ,
  1225. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1226.  
  1227. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1228. return Weld
  1229. end
  1230. }
  1231. ,
  1232. Sound = {Create = function(id, par, vol, pit)
  1233.  
  1234. coroutine.resume(coroutine.create(function()
  1235.  
  1236. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1237. wait()
  1238. S:play()
  1239. game:GetService("Debris"):AddItem(S, 6)
  1240. end
  1241. ))
  1242. end
  1243. }
  1244. ,
  1245. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1246.  
  1247. 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})
  1248. return fp
  1249. end
  1250. }
  1251. }
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1258.  
  1259. if hit.Parent == nil then
  1260. return
  1261. end
  1262. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1263. for _,v in pairs(hit.Parent:children()) do
  1264. if v:IsA("Humanoid") then
  1265. h.MaxHealth = 100
  1266. h = v
  1267. end
  1268. end
  1269. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1270. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1271. return
  1272. end
  1273. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1274. game:GetService("Debris"):AddItem(c, 0.5)
  1275. if HitSound ~= nil and HitPitch ~= nil then
  1276. CreateSound(HitSound, hit, 1, HitPitch)
  1277. end
  1278. local Damage = math.random(minim, maxim)
  1279. local blocked = false
  1280. local block = hit.Parent:findFirstChild("Block")
  1281. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1282. blocked = true
  1283. block.Value = block.Value - 1
  1284. print(block.Value)
  1285. end
  1286. if blocked == false then
  1287. h.Health = h.Health - Damage
  1288. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1289. else
  1290. h.Health = h.Health - Damage / 2
  1291. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1292. end
  1293. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1294. lasthit = hit.Parent.Torso
  1295. end
  1296. if Type == "Knockdown" then
  1297. local hum = hit.Parent.Humanoid
  1298. hum.PlatformStand = true
  1299. coroutine.resume(coroutine.create(function(HHumanoid)
  1300.  
  1301. swait(.2)
  1302. HHumanoid.PlatformStand = false
  1303. end
  1304. ), hum)
  1305. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1306. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1307. 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})
  1308. game:GetService("Debris"):AddItem(bodvol, 0.1)
  1309. game:GetService("Debris"):AddItem(rl, 0.1)
  1310. elseif Type == "Normal" then
  1311. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1312. if knockback > 0 then
  1313. vp.Parent = hit.Parent.Torso
  1314. end
  1315. game:GetService("Debris"):AddItem(vp, 0.5)
  1316. elseif Type == "Impale" then
  1317.  
  1318. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))
  1319. Spike.Anchored = true
  1320. Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
  1321. Spike.Position = hit.Parent.Torso.Position
  1322.  
  1323. Services.Debris:AddItem(Spike, 4)
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1331. hit.Parent.Humanoid.PlatformStand = true
  1332.  
  1333.  
  1334. swait(1)
  1335. hit.Parent.Humanoid.PlatformStand = false
  1336. elseif Type == "Up" then
  1337. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1338. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1339. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1340. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1341.  
  1342.  
  1343.  
  1344. elseif Type == "UltSlice" then
  1345.  
  1346. BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0, 0.01,2)
  1347. BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0, 0.01,2)
  1348. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.01,2)
  1349. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1350. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1351. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1352. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1353.  
  1354.  
  1355. elseif Type == "Slice" then
  1356. 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})
  1357. game:GetService("Debris"):AddItem(bp2, 1)
  1358.  
  1359. if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1360. for i = 1,10 do
  1361. Effects.Break.Create (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
  1362.  
  1363.  
  1364. end
  1365. end
  1366.  
  1367.  
  1368.  
  1369.  
  1370. elseif Type == "Snare" then
  1371. 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})
  1372. game:GetService("Debris"):AddItem(bp, 1)
  1373. elseif Type == "Slowness" then
  1374. local SpeedSave=hit.Parent.Humanoid.WalkSpeed
  1375.  
  1376. for i = 1,25 do
  1377. hit.Parent.Humanoid.WalkSpeed = 4
  1378. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  1379. end
  1380. wait(4)
  1381. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  1382. elseif Type == "Firedmg" then
  1383.  
  1384. for i = 1,math.random(1, 6) do
  1385. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1386. BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  1387. BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  1388. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  1389.  
  1390.  
  1391.  
  1392. wait(.1)
  1393. end
  1394. end
  1395.  
  1396. elseif Type == "Freeze" then
  1397. 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})
  1398. game:GetService("Debris"):AddItem(bp, 4)
  1399. for i=1,25 do
  1400. IcePartFunk(hit.Parent.Torso,1,1.5,2)
  1401. end
  1402. elseif Type == "Freeze2" then
  1403. 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})
  1404. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1405. hit.Parent.Torso.Anchored = true
  1406. coroutine.resume(coroutine.create(function(Part)
  1407.  
  1408. swait(1.5)
  1409. Part.Anchored = false
  1410. end
  1411. ), hit.Parent.Torso)
  1412. game:GetService("Debris"):AddItem(BodPos, 3)
  1413. game:GetService("Debris"):AddItem(BodGy, 3)
  1414. end
  1415. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1416. game:GetService("Debris"):AddItem(debounce, Delay)
  1417. c = Instance.new("ObjectValue")
  1418. c.Name = "creator"
  1419. c.Value = Player
  1420. c.Parent = h
  1421. game:GetService("Debris"):AddItem(c, 0.5)
  1422. end
  1423. end
  1424.  
  1425. ShowDamage = function(Pos, Text, Time, Color)
  1426.  
  1427. local Rate = 0.033333333333333
  1428. if not Pos then
  1429. local Pos = Vector3.new(0, 0, 0)
  1430. end
  1431. local Text = Text or ""
  1432. local Time = Time or 2
  1433. if not Color then
  1434. local Color = Color3.new(1, 0, 1)
  1435. end
  1436. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1437. EffectPart.Anchored = true
  1438. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1439. 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})
  1440. game.Debris:AddItem(EffectPart, Time + 0.1)
  1441. EffectPart.Parent = game:GetService("Workspace")
  1442. delay(0, function()
  1443.  
  1444. local Frames = Time / Rate
  1445. for Frame = 1, Frames do
  1446. wait(Rate)
  1447. local Percent = Frame / Frames
  1448. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1449. TextLabel.TextTransparency = Percent
  1450. end
  1451. if EffectPart and EffectPart.Parent then
  1452. EffectPart:Destroy()
  1453. end
  1454. end
  1455. )
  1456. end
  1457.  
  1458. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1459.  
  1460. for _,c in pairs(workspace:children()) do
  1461. local hum = c:findFirstChildOfClass("Humanoid")
  1462. if hum ~= nil then
  1463. local head = c:findFirstChild("Head")
  1464. if head ~= nil then
  1465. local targ = head.Position - Part.Position
  1466. local mag = targ.magnitude
  1467. if mag <= magni and c.Name ~= Player.Name then
  1468. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2)
  1469. end
  1470. end
  1471. end
  1472. end
  1473. end
  1474. MagniKILL = function(Part, magni, knock, Type)
  1475.  
  1476. for _,c in pairs(workspace:children()) do
  1477. local hum = c:findFirstChildOfClass("Humanoid")
  1478. if hum ~= nil then
  1479. local head = c:findFirstChild("Head")
  1480. if head ~= nil then
  1481. local targ = head.Position - Part.Position
  1482. local mag = targ.magnitude
  1483. if mag <= magni and c.Name ~= Player.Name then
  1484. hum.Health = 0
  1485. end
  1486. end
  1487. end
  1488. end
  1489. end
  1490. EffectModel = Instance.new("Model", Character)
  1491. EffectModel.Name = "Effects"
  1492.  
  1493. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1494.  
  1495. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1496. prt.Anchored = true
  1497. prt.CFrame = cframe
  1498. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1499. game:GetService("Debris"):AddItem(prt, 10)
  1500. if Type == 1 or Type == nil then
  1501. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1502. else
  1503. if Type == 2 then
  1504. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1505. else
  1506. if Type == 3 then
  1507. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1508. end
  1509. end
  1510. end
  1511. end
  1512. CreateSound = function(id, par, vol, pit)
  1513.  
  1514. coroutine.resume(coroutine.create(function()
  1515.  
  1516. local sou = Instance.new("Sound", par or workspace)
  1517. sou.Volume = vol
  1518. sou.Pitch = pit or 1
  1519. sou.SoundId = id
  1520. swait()
  1521. sou:play()
  1522. game:GetService("Debris"):AddItem(sou, 6)
  1523. end
  1524. ))
  1525. end
  1526.  
  1527. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1528.  
  1529. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1530. prt.Anchored = true
  1531. prt.CFrame = cframe
  1532. prt.Material = "Neon"
  1533. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1534. game:GetService("Debris"):AddItem(prt, 10)
  1535. coroutine.resume(coroutine.create(function(Part, Mesh)
  1536.  
  1537. for i = 0, 6, delay do
  1538. swait()
  1539. Part.Transparency = i
  1540. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1541. end
  1542. Part.Parent = nil
  1543. end
  1544. ), prt, msh)
  1545. end
  1546.  
  1547. shoottraildd = function(mouse, partt, SpreadAmount)
  1548.  
  1549. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
  1550. local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
  1551. local MainPos2 = mouse + SpreadVectors
  1552. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1553. local speed = 100
  1554. local num = 1
  1555. coroutine.resume(coroutine.create(function()
  1556.  
  1557. repeat
  1558. swait()
  1559. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1560. local mag = (MainPos - pos).magnitude
  1561. 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)
  1562. MainPos = MainPos + MouseLook.lookVector * speed
  1563. num = num - 1
  1564. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1565. if hit ~= nil then
  1566. num = 0
  1567. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1568. refpart.Anchored = true
  1569. refpart.CFrame = CFrame.new(pos)
  1570. game:GetService("Debris"):AddItem(refpart, 2)
  1571. end
  1572. do
  1573. if num <= 0 then
  1574. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1575. refpart.Anchored = true
  1576. refpart.CFrame = CFrame.new(pos)
  1577. if hit ~= nil then
  1578.  
  1579.  
  1580.  
  1581. GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
  1582. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
  1583. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1584. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1585. MagniDamage(refpart, 6, 10, 25, 0, "Slice")
  1586. end
  1587. game:GetService("Debris"):AddItem(refpart, 0)
  1588. end
  1589. end
  1590. until num <= 0
  1591. end
  1592. ))
  1593. end
  1594.  
  1595. shoottraildd2 = function(mouse, partt, SpreadAmount)
  1596.  
  1597. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1598. local MainPos = partt.Position
  1599. local MainPos2 = mouse + SpreadVectors
  1600. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1601. local speed = 1000
  1602. local num = 1
  1603. coroutine.resume(coroutine.create(function()
  1604.  
  1605. repeat
  1606. swait()
  1607. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1608. local mag = (MainPos - pos).magnitude
  1609. 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)
  1610. MainPos = MainPos + MouseLook.lookVector * speed
  1611. num = num - 1
  1612. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1613. if hit ~= nil then
  1614. num = 0
  1615. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1616. refpart.Anchored = true
  1617. refpart.CFrame = CFrame.new(pos)
  1618. game:GetService("Debris"):AddItem(refpart, 2)
  1619. end
  1620. do
  1621. if num <= 0 then
  1622. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1623. refpart.Anchored = true
  1624. refpart.CFrame = CFrame.new(pos)
  1625. if hit ~= nil then
  1626. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1627. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  1628. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1629. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1630. MagniKILL(refpart, 80, 0, "Normal")
  1631. end
  1632. game:GetService("Debris"):AddItem(refpart, 0)
  1633. end
  1634. end
  1635. until num <= 0
  1636. end
  1637. ))
  1638. end
  1639.  
  1640. shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  1641.  
  1642. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1643. local MainPos = partt.Position
  1644. local MainPos2 = mouse + SpreadVectors
  1645. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1646. local speed = 200
  1647. local num = 0
  1648. coroutine.resume(coroutine.create(function()
  1649.  
  1650. repeat
  1651. swait()
  1652. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1653. local mag = (MainPos - pos).magnitude
  1654. 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)
  1655. MainPos = MainPos + MouseLook.lookVector * speed
  1656. num = num - 1
  1657. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1658. if hit ~= nil then
  1659. num = 0
  1660. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1661. refpart.Anchored = true
  1662. refpart.CFrame = CFrame.new(pos)
  1663. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1664. game:GetService("Debris"):AddItem(refpart, 2)
  1665. end
  1666. do
  1667. if num <= 0 then
  1668. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1669. refpart.Anchored = true
  1670. refpart.CFrame = CFrame.new(pos)
  1671. if hit ~= nil then
  1672. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1673. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1674. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1675.  
  1676.  
  1677. MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  1678.  
  1679. end
  1680. game:GetService("Debris"):AddItem(refpart, 0)
  1681. end
  1682. end
  1683. until num <= 0
  1684. end
  1685. ))
  1686. end
  1687.  
  1688. shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  1689.  
  1690. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1691. local MainPos = partt.Position
  1692. local MainPos2 = mouse + SpreadVectors
  1693. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1694. local speed = 150
  1695. local num = 1
  1696. coroutine.resume(coroutine.create(function()
  1697.  
  1698. repeat
  1699. swait()
  1700. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1701. local mag = (MainPos - pos).magnitude
  1702. 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)
  1703. MainPos = MainPos + MouseLook.lookVector * speed
  1704. num = num - 1
  1705. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1706. if hit ~= nil then
  1707. num = 0
  1708. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1709. refpart.Anchored = true
  1710. refpart.CFrame = CFrame.new(pos)
  1711. game:GetService("Debris"):AddItem(refpart, 2)
  1712. end
  1713. do
  1714. if num <= 0 then
  1715. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1716. refpart.Anchored = true
  1717. refpart.CFrame = CFrame.new(pos)
  1718. if hit ~= nil then
  1719. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1720. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1721. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1722. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1723. MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  1724. end
  1725. game:GetService("Debris"):AddItem(refpart, 0)
  1726. end
  1727. end
  1728. until num <= 0
  1729. end
  1730. ))
  1731. end
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  1740.  
  1741. Hitpart3 = Instance.new("Part",HPart3)
  1742. RemoveOutlines(Hitpart3)
  1743. Hitpart3.Size = Vector3.new(1,1,1)
  1744. Hitpart3.CanCollide = false
  1745. HuW3 = Instance.new("Weld")
  1746. HuW3.Name = "GuW"
  1747. HuW3.Part0 = HPart3
  1748. HuW3.C0 = cn(Xv, Yv, Zv)
  1749. HuW3.C1 = cn(0, 0, 0)
  1750. HuW3.Part1 = Hitpart3
  1751. HuW3.Parent = HPart3
  1752. Hitpart3.Transparency = 1
  1753. game:GetService("Debris"):AddItem(Hitpart3, 20)
  1754. end
  1755.  
  1756. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  1757.  
  1758. Hitpart2 = Instance.new("Part",HPart2)
  1759. RemoveOutlines(Hitpart2)
  1760. Hitpart2.Size = Vector3.new(1,1,1)
  1761. Hitpart2.CanCollide = false
  1762. HuW2 = Instance.new("Weld")
  1763. HuW2.Name = "GuW"
  1764. HuW2.Part0 = HPart2
  1765. HuW2.C0 = cn(Xv, Yv, Zv)
  1766. HuW2.C1 = cn(0, 0, 0)
  1767. HuW2.Part1 = Hitpart2
  1768. HuW2.Parent = HPart2
  1769. Hitpart2.Transparency = 1
  1770. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1771. end
  1772.  
  1773.  
  1774. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1775.  
  1776. Hitpart = Instance.new("Part",HPart)
  1777. RemoveOutlines(Hitpart)
  1778. Hitpart.Size = Vector3.new(1,1,1)
  1779. Hitpart.CanCollide = false
  1780. HuW = Instance.new("Weld")
  1781. HuW.Name = "GuW"
  1782. HuW.Part0 = HPart
  1783. HuW.C0 = cn(Xv, Yv, Zv)
  1784. HuW.C1 = cn(0, 0, 0)
  1785. HuW.Part1 = Hitpart
  1786. HuW.Parent = HPart
  1787. Hitpart.Transparency = 1
  1788. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1789. MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
  1790.  
  1791. end
  1792. HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1793.  
  1794. Hitpart4 = Instance.new("Part",HPart)
  1795. RemoveOutlines(Hitpart4)
  1796. Hitpart4.Size = Vector3.new(1,1,1)
  1797. Hitpart4.CanCollide = false
  1798. HuW4 = Instance.new("Weld")
  1799. HuW4.Name = "HuW4"
  1800. HuW4.Part0 = HPart
  1801. HuW4.C0 = cn(Xv, Yv, Zv)
  1802. HuW4.C1 = cn(0, 0, 0)
  1803. HuW4.Part1 = Hitpart4
  1804. HuW4.Parent = HPart
  1805. Hitpart4.Transparency = 1
  1806. game:GetService("Debris"):AddItem(Hitpart4, 1.5)
  1807. MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
  1808.  
  1809. end
  1810.  
  1811.  
  1812. HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
  1813.  
  1814. Hitboxpart = Instance.new("Part",Character)
  1815. RemoveOutlines(Hitboxpart)
  1816. Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
  1817. Hitboxpart.CanCollide = false
  1818. Hitboxpart.Transparency = 1
  1819. Hitboxpart.Anchored = true
  1820. Hitboxpart.CFrame = Pose
  1821. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1822. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1823.  
  1824. end
  1825.  
  1826.  
  1827. wait2 = false
  1828.  
  1829.  
  1830. combo = 1
  1831.  
  1832.  
  1833.  
  1834.  
  1835. duljump = false
  1836. duljump2 = false
  1837. jumpatck = false
  1838. mouse.KeyDown:connect(function(k)
  1839. if k == "0" then
  1840. CFuncs['Sound'].Create("rbxassetid://891338458",Character,6,1)
  1841. Runkey = true
  1842. end
  1843. if k == "x" then
  1844. airtime:play()
  1845. end
  1846. if k == "c" then
  1847. CFuncs['Sound'].Create("rbxassetid://892075913",Character,6,1)
  1848. end
  1849. if k == "q" and attack == false then
  1850. attack = true
  1851. Humanoid.WalkSpeed = 0
  1852. IKM = true
  1853. body.BrickColor = BrickColor.new("New Yeller")
  1854. body.Color = Color3.new(1,1,0)
  1855. body.Reflectance = 0
  1856. particle.LightEmission = 0.3
  1857. particle.Texture = "rbxassetid://241629053"
  1858. particle.Color = ColorSequence.new(Color3.new(1,1,0))
  1859. particle.Enabled = true
  1860. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1861. wait(0.1)
  1862. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1863. wait(1)
  1864. particle.Enabled = false
  1865. wait(2)
  1866. Humanoid.WalkSpeed = 30
  1867. attack = false
  1868. end
  1869.  
  1870. if k == "t" and attack == false then
  1871. attack = true
  1872. IKM = false
  1873. Humanoid.WalkSpeed = 0
  1874. body.BrickColor = BrickColor.new("Really red")
  1875. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  1876. body.Reflectance = 0.5
  1877. particle.LightEmission = 0.3
  1878. particle.Texture = "rbxassetid://241629053"
  1879. particle.Color = ColorSequence.new(Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)))
  1880. particle.Enabled = true
  1881. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1882. wait(0.1)
  1883. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1884. wait(1)
  1885. particle.Enabled = false
  1886. wait(2)
  1887. Humanoid.WalkSpeed = 30
  1888. attack = false
  1889. end
  1890.  
  1891. if k == "y" and attack == false then
  1892. attack = true
  1893. IKM = true
  1894. Humanoid.WalkSpeed = 0
  1895. body.BrickColor = BrickColor.new("Really red")
  1896. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  1897. body.Reflectance = 0.5
  1898. particle.LightEmission = 0.9
  1899. particle.Texture = "rbxassetid://280516525"
  1900. particle.Color = ColorSequence.new(ColorsArray)
  1901. particle.Enabled = true
  1902. CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
  1903. wait(0.1)
  1904. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1905. wait(1)
  1906. particle.Enabled = false
  1907. wait(2)
  1908. Humanoid.WalkSpeed = 30
  1909. attack = false
  1910. end
  1911.  
  1912. if k == "r" and attack == false then
  1913. attack = true
  1914. Humanoid.WalkSpeed = 0
  1915. IKM = false
  1916. body.BrickColor = BrickColor.new("Really Blue")
  1917. body.Color = Color3.new(0,0,1)
  1918. body.Reflectance = 0
  1919. particle.LightEmission = 0.3
  1920. particle.Texture = "rbxassetid://241629053"
  1921. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  1922. particle.Enabled = true
  1923. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1924. wait(0.1)
  1925. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  1926. wait(1)
  1927. particle.Enabled = false
  1928. wait(2)
  1929. Humanoid.WalkSpeed = 30
  1930. attack = false
  1931. end
  1932.  
  1933. if k == "e" and attack == false then
  1934. attack = true
  1935.  
  1936. Humanoid.WalkSpeed = 0
  1937.  
  1938. CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)
  1939.  
  1940. for i = 0, 2, 0.1 do
  1941. swait()
  1942.  
  1943. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1944. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1945. 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)
  1946. 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)
  1947. 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)
  1948. 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)
  1949. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1950.  
  1951.  
  1952.  
  1953. end
  1954.  
  1955. for i = 0, 4, 0.1 do
  1956. swait()
  1957.  
  1958. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1959. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1960. 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)
  1961. 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)
  1962. 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)
  1963. 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)
  1964. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1965.  
  1966.  
  1967.  
  1968. end
  1969. for i = 0, 1 do
  1970. for i = 0, 1, 0.1 do
  1971. swait()
  1972.  
  1973. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1974. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1975. 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)
  1976. 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)
  1977. 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)
  1978. 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)
  1979. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1980.  
  1981.  
  1982.  
  1983. end
  1984. for i = 0, 1, 0.1 do
  1985. swait()
  1986.  
  1987. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1988. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1989. 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)
  1990. 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)
  1991. 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)
  1992. 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)
  1993. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1994.  
  1995.  
  1996.  
  1997. end
  1998. end
  1999.  
  2000. Humanoid.WalkSpeed = 30
  2001.  
  2002. attack = false
  2003.  
  2004.  
  2005.  
  2006.  
  2007. end
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025. end)
  2026. hitwait = false
  2027. function onTouch(part)
  2028.  
  2029. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  2030. local model = part.Parent
  2031. local torso = part.Parent:FindFirstChild("Torso")
  2032. local head = part.Parent:findFirstChild("Head")
  2033. local leftleg = part.Parent:findFirstChild("Left Leg")
  2034. local rightleg = part.Parent:findFirstChild("Right Leg")
  2035. local leftarm = part.Parent:findFirstChild("Left Arm")
  2036. local rightarm = part.Parent:findFirstChild("Right Arm")
  2037.  
  2038. if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
  2039.  
  2040. hitwait = true
  2041.  
  2042.  
  2043.  
  2044.  
  2045. if (humanoid ~=nil) and humanoid.Health >0.01 and Torsovelocity > 1 then
  2046.  
  2047. if IKM == true then
  2048. Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)
  2049. Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)
  2050. model:BreakJoints()
  2051. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  2052. local sel = math.random(3)
  2053. if sel == 1 then
  2054. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  2055. end
  2056. if sel == 2 then
  2057. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  2058. end
  2059. if sel == 3 then
  2060. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  2061. end
  2062.  
  2063. else
  2064. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
  2065. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)
  2066. MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown")
  2067. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  2068. local sel = math.random(3)
  2069. if sel == 1 then
  2070. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  2071. end
  2072. if sel == 2 then
  2073. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  2074. end
  2075. if sel == 3 then
  2076. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  2077. end
  2078. end
  2079.  
  2080. attack = true
  2081. Humanoid.WalkSpeed = 0
  2082. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
  2083.  
  2084. game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
  2085.  
  2086. for i = 0, .5, 0.1 do
  2087. swait()
  2088.  
  2089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
  2090. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2091. 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)
  2092. 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)
  2093. 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)
  2094. 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)
  2095. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)
  2096.  
  2097.  
  2098.  
  2099. end
  2100.  
  2101.  
  2102. Humanoid.WalkSpeed = 30
  2103. end
  2104. attack = false
  2105. wait(.08)
  2106. hitwait = false
  2107. end
  2108.  
  2109. end
  2110. FrontPart.Touched:connect(onTouch)
  2111.  
  2112.  
  2113.  
  2114. mouse.KeyUp:connect(function(k)
  2115. if k == "0"then
  2116. Runkey = false
  2117.  
  2118. end
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125. end)
  2126.  
  2127. humHsave = Humanoid.Health
  2128. function GainCharge(Humanoid)
  2129. if Humanoid.Health == 0 then
  2130. equipped = false
  2131. end
  2132. if blocking == true then
  2133.  
  2134. humDsave = Humanoid.Health
  2135. humDsave = humHsave - humDsave
  2136. if humDsave >0.01 then
  2137.  
  2138. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)
  2139. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2140. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2141. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2142. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2143. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2144. humDsave = humDsave/3
  2145. end
  2146. if humDsave <0 then
  2147.  
  2148.  
  2149. Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
  2150. --[[
  2151. BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.1,2)
  2152. BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2153. BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2154. BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2155. BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2156. --]]
  2157. humDsave = humDsave*2.5
  2158. end
  2159.  
  2160. humHsave = humHsave - humDsave
  2161.  
  2162.  
  2163.  
  2164.  
  2165. end
  2166.  
  2167. end
  2168.  
  2169. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  2170.  
  2171.  
  2172. OnDeath = function()
  2173.  
  2174. equipped = false
  2175.  
  2176.  
  2177.  
  2178. end
  2179.  
  2180. Humanoid.Died:connect(function()OnDeath(Character)end)
  2181.  
  2182.  
  2183.  
  2184. print('This fucking masterpiece was totally not created by xiaxiaokid.')
  2185. local music=Instance.new('Sound',inside)
  2186. music.Name='ok music'
  2187. music.Volume=7
  2188. music.Pitch=1
  2189. music.Looped=true
  2190. music.SoundId = "rbxassetid://737286463"
  2191. local gui=Instance.new('ScreenGui',Player.PlayerGui)
  2192. gui.Name='you make me cri'
  2193. local topFrame=Instance.new('Frame',gui)
  2194. topFrame.Name='TopFrame'
  2195. topFrame.Size=UDim2.new(1,0,1,0)
  2196. topFrame.BorderSizePixel=0
  2197. topFrame.BackgroundTransparency=1
  2198. local choiceFrame=Instance.new('Frame',topFrame)
  2199. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  2200. choiceFrame.Draggable=true
  2201. choiceFrame.BackgroundTransparency=.7
  2202. choiceFrame.Position=UDim2.new(.5,0,.775,0)
  2203. choiceFrame.BackgroundColor3=Color3.new(0,0,0)
  2204. choiceFrame.BorderColor3=Color3.new(0,0,0)
  2205. local innerFrame3=Instance.new('Frame',choiceFrame)
  2206. innerFrame3.Size=UDim2.new(.5,0,1,0)
  2207. innerFrame3.Position=UDim2.new(.5,0,0,0)
  2208. innerFrame3.Draggable=true
  2209. innerFrame3.BackgroundTransparency=.9
  2210. innerFrame3.BackgroundColor3=Color3.new(0,0,0)
  2211. innerFrame3.BorderColor3=Color3.new(0,0,0)
  2212. local innerFrame4=Instance.new('Frame',choiceFrame)
  2213. innerFrame4.Size=UDim2.new(.5,0,1,0)
  2214. innerFrame4.Draggable=false
  2215. innerFrame4.BackgroundTransparency=.5
  2216. innerFrame4.Position=UDim2.new(.5,0,1,1)
  2217. innerFrame4.BackgroundColor3=Color3.new(0,0,0)
  2218. innerFrame4.BorderColor3=Color3.new(0,0,0)
  2219. local musicID=Instance.new('TextBox',innerFrame4)
  2220. musicID.Size=UDim2.new(.8,0,.7,0)
  2221. musicID.Position=UDim2.new(.1,0,.15,0)
  2222. musicID.BackgroundTransparency=.7
  2223. musicID.Visible=true
  2224. musicID.Text="Music ID (press enter to use the audio)"
  2225. musicID.TextScaled=true
  2226. musicID.TextStrokeTransparency=0
  2227. musicID.TextColor3=Color3.new(0,255,255)
  2228. musicID.BackgroundColor3=Color3.new(0,0,0)
  2229. musicID.BorderColor3=Color3.new(0,0,0)
  2230. musicID.FocusLost:connect(function(ent)
  2231. if ent then
  2232. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  2233. end
  2234. end)
  2235. local bt3=Instance.new('TextButton',innerFrame3)
  2236. bt3.Draggable=false
  2237. bt3.BackgroundTransparency=.9
  2238. bt3.BackgroundColor3=Color3.new(0,0,0)
  2239. bt3.Size=UDim2.new(.5,0,1,0)
  2240. bt3.Text="Play"
  2241. bt3.TextStrokeTransparency=0
  2242. bt3.TextColor3=Color3.new(0,255,255)
  2243. bt3.TextScaled=true
  2244. bt3.Font="SciFi"
  2245. bt3.MouseButton1Click:connect(function()
  2246. if not music.IsPlaying then
  2247. musicID.Visible=false
  2248. music:play''
  2249. innerFrame4.Visible=false
  2250. end
  2251. end)
  2252. local bt4=Instance.new('TextButton',innerFrame3)
  2253. bt4.Draggable=false
  2254. bt4.BackgroundTransparency=.9
  2255. bt4.BackgroundColor3=Color3.new(0,0,0)
  2256. bt4.Size=UDim2.new(.5,0,1,0)
  2257. bt4.Position=UDim2.new(.5,0,0,0)
  2258. bt4.Text="Stop"
  2259. bt4.TextStrokeTransparency=0
  2260. bt4.TextColor3=Color3.new(0,255,255)
  2261. bt4.TextScaled=true
  2262. bt4.Font="SciFi"
  2263. bt4.MouseButton1Click:connect(function()
  2264. if music.IsPlaying then
  2265. music:stop''
  2266. musicID.Visible=true
  2267. innerFrame4.Visible=true
  2268. end
  2269. end)
  2270. while true do
  2271. swait()
  2272. Humanoid.Name = "fnwihjfbewuhgbewjhgbrjhge"
  2273. Humanoid.MaxHealth = math.huge
  2274. Humanoid.Health = math.huge
  2275. end--[[screw bumper cars now we have...
  2276.  
  2277.  
  2278.  
  2279.  
  2280. A REAL FUCKING CAR HOLY SHIT!!!!1!1]]--
  2281.  
  2282. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  2283. secondcolor = "Really black"
  2284.  
  2285. wait(1 / 60)
  2286. Effects = { }
  2287. local Player = game.Players.localPlayer
  2288. local Character = Player.Character
  2289. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  2290. local mouse = Player:GetMouse()
  2291. local LeftArm = Character["Left Arm"]
  2292. local RightArm = Character["Right Arm"]
  2293. local LeftLeg = Character["Left Leg"]
  2294. local RightLeg = Character["Right Leg"]
  2295. local Head = Character.Head
  2296. local Torso = Character.Torso
  2297. local cam = game.Workspace.CurrentCamera
  2298. local RootPart = Character.HumanoidRootPart
  2299. local RootJoint = RootPart.RootJoint
  2300. local equipped = true
  2301. local attack = false
  2302. local Anim = 'Idle'
  2303. local idle = 0
  2304. local attacktype = 1
  2305. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2306. local velocity = RootPart.Velocity.y
  2307. local sine = 0
  2308. local change = 1
  2309. local grabbed = false
  2310. local cn = CFrame.new
  2311. local mr = math.rad
  2312. local angles = CFrame.Angles
  2313. local ud = UDim2.new
  2314. local c3 = Color3.new
  2315. local dir = {w = 0, s = 0, a = 0, d = 0}
  2316. Climbanim = false
  2317. Runkey=false
  2318. firemode = false
  2319. inair = false
  2320. blocking=false
  2321. humHsave=0
  2322. humDsave=0
  2323. extralock=true
  2324. lasthit = nil
  2325. IKM = false
  2326. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  2327. ff.Visible = false
  2328. HMDX = Humanoid.MoveDirection.X/3
  2329. HMDZ = Humanoid.MoveDirection.Z/3
  2330. local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
  2331. ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)),
  2332. ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)),
  2333. ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)),
  2334. ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)),
  2335. ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)),
  2336. ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)),
  2337. ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))}
  2338. local s = Instance.new("Sound",Character)
  2339. s.Name = "BumperCarSound"
  2340. s.SoundId = "http://www.roblox.com/asset/?id=532147820"
  2341. s.Pitch = .7
  2342. s.Volume = 5
  2343. s.Looped = true
  2344. s.archivable = false
  2345. s.Parent = Character
  2346. s:play()
  2347. local airtime = Instance.new("Sound",Character)
  2348. airtime.Name = "airtime"
  2349. airtime.SoundId = "http://www.roblox.com/asset/?id=892076107"
  2350. airtime.Volume = 5
  2351. airtime.archivable = false
  2352. airtime.Parent = Character
  2353. sflon = true
  2354. bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
  2355. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  2356. if attack == true then
  2357. bg2.D = 0
  2358. bg2.P = 0
  2359. bg2.maxTorque = Vector3.new(0,0,0)
  2360. end
  2361. if attack == false then
  2362. bg2.D = 100
  2363. bg2.P = 9999
  2364. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  2365. 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)
  2366.  
  2367. end
  2368. end)--]]
  2369.  
  2370. New = function(Object, Parent, Name, Data)
  2371. local Object = Instance.new(Object)
  2372. for Index, Value in pairs(Data or {}) do
  2373. Object[Index] = Value
  2374. end
  2375. Object.Parent = Parent
  2376. Object.Name = Name
  2377. return Object
  2378. end
  2379.  
  2380. BumperCar = New("Model",Workspace,"BumperCar",{})
  2381. SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),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.5,0.5,0.5),})
  2382. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),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.7,0.7,0.7),})
  2383. wheel = New("Part",BumperCar,"wheels",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 8.15000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  2384. wheel2 = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  2385. body = New("Part",BumperCar,"car",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
  2386. glass = New("Part",BumperCar,"glass",{BrickColor = BrickColor.new("Pastel light blue"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.45000019, -35.7631157, 0.001, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,})
  2387. inside = New("Part",BumperCar,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
  2388. grille = New("Part",BumperCar,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.1,0.1,0.1),})
  2389. plate = New("Part",BumperCar,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -44.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  2390. rl = New("Part",BumperCar,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
  2391. hl = New("Part",BumperCar,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
  2392. ep = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
  2393. hitbox = New("Part",BumperCar,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.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.5,0.5,0.5),})
  2394. hitbox2 = New("Part",BumperCar,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.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.5,0.5,0.5),})
  2395.  
  2396. 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, -31.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,})
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409. local mesh2 = Instance.new("FileMesh")
  2410. mesh2.Parent = body
  2411. mesh2.MeshId = "rbxassetid://1432737948"
  2412. local mesh = Instance.new("FileMesh")
  2413. mesh.Parent = wheel
  2414. mesh.MeshId = "rbxassetid://1432629613"
  2415. local mesh3 = Instance.new("FileMesh")
  2416. mesh3.Parent = glass
  2417. mesh3.MeshId = "rbxassetid://1432810983"
  2418. local mesh4 = Instance.new("FileMesh")
  2419. mesh4.Parent = inside
  2420. mesh4.MeshId = "rbxassetid://1432877497"
  2421. local mesh5 = Instance.new("FileMesh")
  2422. mesh5.Parent = grille
  2423. mesh5.MeshId = "rbxassetid://1432898984"
  2424. local mesh6 = Instance.new("FileMesh")
  2425. mesh6.Parent = plate
  2426. mesh6.MeshId = "rbxassetid://1432917470"
  2427. local mesh7 = Instance.new("FileMesh")
  2428. mesh7.Parent = rl
  2429. mesh7.MeshId = "rbxassetid://1432942116"
  2430. local mesh8 = Instance.new("FileMesh")
  2431. mesh8.Parent = hl
  2432. mesh8.MeshId = "rbxassetid://1432958104"
  2433. local Light = Instance.new("SpotLight",hl)
  2434. Light.Angle = 90;
  2435. Light.Brightness = 100;
  2436. Light.Face = Enum.NormalId.Left;
  2437. Light.Range = 30;
  2438. local lt2 = Instance.new('PointLight',rl)
  2439. lt2.Range = 8
  2440. lt2.Brightness = 100
  2441. lt2.Color = Color3.new(1,0,0)
  2442. lt2.Enabled = true
  2443. lt2.Shadows = true
  2444. ep.Transparency = 1
  2445. particle = Instance.new("ParticleEmitter",ep)
  2446. particle.Enabled = false
  2447. particle.EmissionDirection = "Bottom"
  2448. particle.Lifetime = NumberRange.new(2.5,2.501)
  2449. particle.Rate = 1500
  2450. particle.Texture = "rbxassetid://241629053"
  2451. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  2452.  
  2453. particle.Size = NumberSequence.new(1.4,1.41)
  2454. local all,last = {}
  2455. function scan(p)
  2456. for _,v in pairs(p:GetChildren()) do
  2457. if (v:IsA("BasePart")) then
  2458. if (last) then
  2459. local w = Instance.new("Weld")
  2460. w.Part0,w.Part1 = last,v
  2461. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  2462. w.Parent = last
  2463. end
  2464. table.insert(all,v)
  2465. last = v
  2466. end
  2467. scan(v)
  2468. end
  2469. end
  2470. scan(BumperCar)
  2471.  
  2472.  
  2473. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  2474. wheel2.Transparency = 1
  2475. wheel2.CanCollide = true
  2476. hitbox.CanCollide = true
  2477. hitbox.Transparency = 1
  2478. hitbox2.CanCollide = true
  2479. hitbox2.Transparency = 1
  2480. BumperCar.Parent = Character
  2481.  
  2482. local Services = {
  2483.  
  2484.  
  2485. SoundService = game:GetService("SoundService");
  2486. Players = game:GetService("Players");
  2487. Debris = game:GetService("Debris");
  2488. Workspace = game:GetService("Workspace");
  2489. Lighting = game:GetService("Lighting");
  2490. HttpService = game:GetService("HttpService");
  2491. InsertService = game:GetService("InsertService");
  2492.  
  2493. }
  2494.  
  2495. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2496. Humanoid.Animator:Destroy()
  2497. Character.Animate:Destroy()
  2498.  
  2499. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  2500. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  2501. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  2502.  
  2503.  
  2504.  
  2505. SWW = Instance.new("Weld")
  2506. SWW.Name = "SWW"
  2507. SWW.Part0 = Torso
  2508. SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
  2509. SWW.C1 = cn(0, 0, 0)
  2510. SWW.Part1 = SwHandle
  2511. SWW.Parent = Torso
  2512.  
  2513. RSH, LSH = nil, nil
  2514.  
  2515. RW = Instance.new("Weld")
  2516. LW = Instance.new("Weld")
  2517.  
  2518. RH = Torso["Right Hip"]
  2519. LH = Torso["Left Hip"]
  2520.  
  2521. RSH = Torso["Right Shoulder"]
  2522. LSH = Torso["Left Shoulder"]
  2523.  
  2524. RSH.Parent = nil
  2525. LSH.Parent = nil
  2526.  
  2527. RW.Name = "RW"
  2528. RW.Part0 = Torso
  2529. RW.C0 = cn(1.5, 0.5, 0)
  2530. RW.C1 = cn(0, 0.5, 0)
  2531. RW.Part1 = RightArm
  2532. RW.Parent = Torso
  2533.  
  2534. LW.Name = "LW"
  2535. LW.Part0 = Torso
  2536. LW.C0 = cn(-1.5, 0.5, 0)
  2537. LW.C1 = cn(0, 0.5, 0)
  2538. LW.Part1 = LeftArm
  2539. LW.Parent = Torso
  2540.  
  2541. function clerp(a, b, t)
  2542. local qa = {
  2543. QuaternionFromCFrame(a)
  2544. }
  2545. local qb = {
  2546. QuaternionFromCFrame(b)
  2547. }
  2548. local ax, ay, az = a.x, a.y, a.z
  2549. local bx, by, bz = b.x, b.y, b.z
  2550. local _t = 1 - t
  2551. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2552. end
  2553.  
  2554. function QuaternionFromCFrame(cf)
  2555. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2556. local trace = m00 + m11 + m22
  2557. if trace > 0 then
  2558. local s = math.sqrt(1 + trace)
  2559. local recip = 0.5 / s
  2560. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2561. else
  2562. local i = 0
  2563. if m11 > m00 then
  2564. i = 1
  2565. end
  2566. if m22 > (i == 0 and m00 or m11) then
  2567. i = 2
  2568. end
  2569. if i == 0 then
  2570. local s = math.sqrt(m00 - m11 - m22 + 1)
  2571. local recip = 0.5 / s
  2572. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2573. elseif i == 1 then
  2574. local s = math.sqrt(m11 - m22 - m00 + 1)
  2575. local recip = 0.5 / s
  2576. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2577. elseif i == 2 then
  2578. local s = math.sqrt(m22 - m00 - m11 + 1)
  2579. local recip = 0.5 / s
  2580. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2581. end
  2582. end
  2583. end
  2584.  
  2585. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2586. local xs, ys, zs = x + x, y + y, z + z
  2587. local wx, wy, wz = w * xs, w * ys, w * zs
  2588. local xx = x * xs
  2589. local xy = x * ys
  2590. local xz = x * zs
  2591. local yy = y * ys
  2592. local yz = y * zs
  2593. local zz = z * zs
  2594. 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))
  2595. end
  2596.  
  2597. function QuaternionSlerp(a, b, t)
  2598. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2599. local startInterp, finishInterp;
  2600. if cosTheta >= 0.0001 then
  2601. if (1 - cosTheta) > 0.0001 then
  2602. local theta = math.acos(cosTheta)
  2603. local invSinTheta = 1 / math.sin(theta)
  2604. startInterp = math.sin((1 - t) * theta) * invSinTheta
  2605. finishInterp = math.sin(t * theta) * invSinTheta
  2606. else
  2607. startInterp = 1 - t
  2608. finishInterp = t
  2609. end
  2610. else
  2611. if (1 + cosTheta) > 0.0001 then
  2612. local theta = math.acos(-cosTheta)
  2613. local invSinTheta = 1 / math.sin(theta)
  2614. startInterp = math.sin((t - 1) * theta) * invSinTheta
  2615. finishInterp = math.sin(t * theta) * invSinTheta
  2616. else
  2617. startInterp = t - 1
  2618. finishInterp = t
  2619. end
  2620. end
  2621. 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
  2622. end
  2623.  
  2624. function swait(num)
  2625. if num == 0 or num == nil then
  2626. game:service'RunService'.RenderStepped:wait(0)
  2627. else
  2628. for i = 0, num do
  2629. game:service'RunService'.RenderStepped:wait(0)
  2630. end
  2631. end
  2632. end
  2633.  
  2634. local RbxUtility = LoadLibrary("RbxUtility")
  2635. local Create = RbxUtility.Create
  2636.  
  2637. function RemoveOutlines(part)
  2638. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2639. end
  2640.  
  2641. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2642. local Part = Create("Part"){
  2643. formFactor = FormFactor,
  2644. Parent = Parent,
  2645. Reflectance = Reflectance,
  2646. Transparency = Transparency,
  2647. CanCollide = false,
  2648. Locked = true,
  2649. BrickColor = BrickColor.new(tostring(BColor)),
  2650. Name = Name,
  2651. Size = Size,
  2652. Material = Material,
  2653. }
  2654. RemoveOutlines(Part)
  2655. return Part
  2656. end
  2657.  
  2658. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2659. local Msh = Create(Mesh){
  2660. Parent = Part,
  2661. Offset = OffSet,
  2662. Scale = Scale,
  2663. }
  2664. if Mesh == "SpecialMesh" then
  2665. Msh.MeshType = MeshType
  2666. Msh.MeshId = MeshId
  2667. end
  2668. return Msh
  2669. end
  2670.  
  2671. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2672. local Weld = Create("Weld"){
  2673. Parent = Parent,
  2674. Part0 = Part0,
  2675. Part1 = Part1,
  2676. C0 = C0,
  2677. C1 = C1,
  2678. }
  2679. return Weld
  2680. end
  2681.  
  2682. function rayCast(Position, Direction, Range, Ignore)
  2683. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  2684. end
  2685.  
  2686. function CreateSound(id, par, vol, pit)
  2687. coroutine.resume(coroutine.create(function()
  2688. local sou = Instance.new("Sound", par or workspace)
  2689. sou.Volume = vol
  2690. sou.Pitch = pit or 1
  2691. sou.SoundId = id
  2692. wait()
  2693. sou:play()
  2694. game:GetService("Debris"):AddItem(sou, 6)
  2695. end))
  2696. end
  2697. function CreateSong(id, par, vol, pit)
  2698. coroutine.resume(coroutine.create(function()
  2699. sou2 = Instance.new("Sound", par or workspace)
  2700. sou2.Volume = vol
  2701. sou2.Pitch = 1
  2702. sou2.SoundId = id
  2703. wait()
  2704. sou2:play()
  2705. sou2.Looped = true
  2706. end))
  2707. end
  2708.  
  2709. local function getclosest(obj, distance)
  2710. local last, lastx = distance + 1
  2711. for i, v in pairs(workspace:GetChildren()) do
  2712. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  2713. local t = v.Torso
  2714. local dist = (t.Position - obj.Position).magnitude
  2715. if dist <= distance then
  2716. if dist < last then
  2717. last = dist
  2718. lastx = v
  2719. end
  2720. end
  2721. end
  2722. end
  2723. return lastx
  2724. end
  2725.  
  2726. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  2727. for i, v in pairs(hit:GetChildren()) do
  2728. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  2729. local find = v:FindFirstChild("Hitz")
  2730. if not find then
  2731. if v.Parent:findFirstChild("Head") then
  2732. local BillG = Create("BillboardGui"){
  2733. Parent = v.Parent.Head,
  2734. Size = UDim2.new(1, 0, 1, 0),
  2735. Adornee = v.Parent.Head,
  2736. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  2737. }
  2738. local TL = Create("TextLabel"){
  2739. Parent = BillG,
  2740. Size = UDim2.new(3, 3, 3, 3),
  2741. BackgroundTransparency = 1,
  2742. Text = tostring(damage).."-",
  2743. TextColor3 = Color1.Color,
  2744. TextStrokeColor3 = Color2.Color,
  2745. TextStrokeTransparency = 0,
  2746. TextXAlignment = Enum.TextXAlignment.Center,
  2747. TextYAlignment = Enum.TextYAlignment.Center,
  2748. FontSize = Enum.FontSize.Size18,
  2749. Font = "ArialBold",
  2750. }
  2751. coroutine.resume(coroutine.create(function()
  2752. wait(1)
  2753. for i = 0, 1, .1 do
  2754. wait(.1)
  2755. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  2756. end
  2757. BillG:Destroy()
  2758. end))
  2759. end
  2760. v.Health = v.Health - damage
  2761. local bool = Create("BoolValue"){
  2762. Parent = v,
  2763. Name = 'Hitz',
  2764. }
  2765. if HSound ~= nil and HPitch ~= nil then
  2766. CreateSound(HSound, hit, 1, HPitch)
  2767. end
  2768. game:GetService("Debris"):AddItem(bool, cooldown)
  2769. end
  2770. end
  2771. end
  2772. end
  2773.  
  2774.  
  2775. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2776. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2777. prt.Anchored = true
  2778. prt.CFrame = cframe
  2779. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2780. game:GetService("Debris"):AddItem(prt, 10)
  2781. if Type == 1 or Type == nil then
  2782. table.insert(Effects, {
  2783. prt,
  2784. "Block1",
  2785. delay,
  2786. x3,
  2787. y3,
  2788. z3,
  2789. msh
  2790. })
  2791. elseif Type == 2 then
  2792. table.insert(Effects, {
  2793. prt,
  2794. "Block2",
  2795. delay,
  2796. x3,
  2797. y3,
  2798. z3,
  2799. msh
  2800. })
  2801. elseif Type == 3 then
  2802. table.insert(Effects, {
  2803. prt,
  2804. "Block3",
  2805. delay,
  2806. x3,
  2807. y3,
  2808. z3,
  2809. msh
  2810. })
  2811. end
  2812. end
  2813.  
  2814. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2815. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2816. prt.Anchored = true
  2817. prt.CFrame = cframe
  2818. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2819. game:GetService("Debris"):AddItem(prt, 10)
  2820. table.insert(Effects, {
  2821. prt,
  2822. "Cylinder",
  2823. delay,
  2824. x3,
  2825. y3,
  2826. z3,
  2827. msh
  2828. })
  2829. end
  2830.  
  2831. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2832. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2833. prt.Anchored = true
  2834. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  2835. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2836. game:GetService("Debris"):AddItem(prt, 10)
  2837. table.insert(Effects, {
  2838. prt,
  2839. "Cylinder",
  2840. delay,
  2841. x3,
  2842. y3,
  2843. z3,
  2844. msh
  2845. })
  2846. end
  2847.  
  2848. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2849. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2850. prt.Anchored = true
  2851. prt.CFrame = cframe
  2852. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2853. game:GetService("Debris"):AddItem(prt, 10)
  2854. table.insert(Effects, {
  2855. prt,
  2856. "Cylinder",
  2857. delay,
  2858. x3,
  2859. y3,
  2860. z3,
  2861. msh
  2862. })
  2863. end
  2864.  
  2865. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2866. local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2867. prt.Anchored = true
  2868. prt.CFrame = cframe
  2869. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2870. game:GetService("Debris"):AddItem(prt, 10)
  2871. table.insert(Effects, {
  2872. prt,
  2873. "Cylinder",
  2874. delay,
  2875. x3,
  2876. y3,
  2877. z3,
  2878. msh
  2879. })
  2880. end
  2881.  
  2882. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2883. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2884. prt.Anchored = true
  2885. prt.CFrame = cframe
  2886. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2887. game:GetService("Debris"):AddItem(prt, 10)
  2888. table.insert(Effects, {
  2889. prt,
  2890. "Cylinder",
  2891. delay,
  2892. x3,
  2893. y3,
  2894. z3,
  2895. msh
  2896. })
  2897. end
  2898.  
  2899. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2900. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2901. prt.Anchored = true
  2902. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2903. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2904. local num = math.random(10, 50) / 1000
  2905. game:GetService("Debris"):AddItem(prt, 10)
  2906. table.insert(Effects, {
  2907. prt,
  2908. "Shatter",
  2909. num,
  2910. prt.CFrame,
  2911. math.random() - math.random(),
  2912. 0,
  2913. math.random(50, 100) / 100
  2914. })
  2915. end
  2916.  
  2917.  
  2918.  
  2919.  
  2920. for i = 0, 1, 0.05 do
  2921. swait()
  2922. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2923. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  2924. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  2925. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2926. if Torsovelocity > 2 then
  2927. 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)
  2928. 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)
  2929. 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)
  2930. elseif Torsovelocity < 1 then
  2931. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  2932. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2933. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2934. end
  2935. end
  2936. attack = false
  2937.  
  2938.  
  2939.  
  2940. game:GetService'RunService'.Stepped:connect(function()
  2941. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2942. velocity = RootPart.Velocity.y
  2943. sine = sine + change
  2944. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2945. if equipped == true or equipped == false then
  2946. if RootPart.Velocity.y > -1 and hit == nil then
  2947. Anim = "Jump"
  2948. inair = true
  2949.  
  2950. if attack == false then
  2951. s.Pitch = 1
  2952. s.Volume = 5
  2953. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  2954. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2955. 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)
  2956. 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)
  2957. 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)
  2958. 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)
  2959. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  2960. end
  2961. elseif RootPart.Velocity.y < -1 and hit == nil then
  2962. Anim = "Fall"
  2963. inair = true
  2964.  
  2965. if attack == false then
  2966. s.Pitch = .7
  2967. s.Volume = 5
  2968. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  2969. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2970. 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)
  2971. 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)
  2972. 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)
  2973. 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)
  2974. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  2975. end
  2976. elseif Torsovelocity < 1 and hit ~= nil then
  2977. Anim = "Idle"
  2978.  
  2979. inair = false
  2980. if attack == false then
  2981. s.Pitch = .7
  2982. s.Volume = 5
  2983. change = 0.8
  2984. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2985. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2986. 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)
  2987. 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)
  2988. 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)
  2989. 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)
  2990. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  2991. end --]]
  2992.  
  2993. elseif Torsovelocity > 1 and hit ~= nil then
  2994. Anim = "Walk"
  2995. inair = false
  2996.  
  2997. if attack == false and Runkey == true then
  2998. s.Pitch = 1.2
  2999. s.Volume = 5
  3000.  
  3001. change = 1
  3002. Humanoid.WalkSpeed = 60
  3003. Humanoid.JumpPower = 105
  3004. 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)
  3005. 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)
  3006. 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)
  3007. 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)
  3008. 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)
  3009. 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)
  3010. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)
  3011. end
  3012. if attack == false and Runkey == false then
  3013. s.Pitch = .8
  3014. s.Volume = 5
  3015. change = 0.65
  3016. Humanoid.WalkSpeed = 30
  3017. Humanoid.JumpPower = 50
  3018. 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)
  3019. 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)
  3020. 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)
  3021. 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)
  3022. 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)
  3023. 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)
  3024. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  3025. end
  3026.  
  3027. function onClimbing(speed)
  3028. if attack == false then
  3029. attack = true
  3030. Climbanim= true
  3031. Humanoid.WalkSpeed = 14
  3032. while Climbanim == true do
  3033. for i = 0, 0, 0.1 do
  3034. swait()
  3035.  
  3036. change = 0.5
  3037.  
  3038.  
  3039.  
  3040. if RootPart.Velocity.y > .01 then
  3041. s.Pitch = .9
  3042. s.Volume = 5
  3043. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
  3044. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  3045. 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)
  3046. 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)
  3047. 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)
  3048. 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)
  3049. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  3050. end
  3051.  
  3052.  
  3053.  
  3054.  
  3055. if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5 then
  3056. s.Pitch = .7
  3057. s.Volume = 5
  3058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
  3059. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  3060. 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)
  3061. 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)
  3062. 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)
  3063. 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)
  3064. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  3065. end
  3066.  
  3067.  
  3068. if RootPart.Velocity.y < -1 then
  3069. s.Pitch = .9
  3070. s.Volume = 5
  3071. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
  3072. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  3073. 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)
  3074. 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)
  3075. 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)
  3076. 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)
  3077. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) end
  3078.  
  3079. end
  3080. if Torsovelocity > 1 then
  3081. Climbanim = false
  3082. end
  3083. end
  3084. attack = false
  3085. end
  3086. end
  3087. Humanoid.Climbing:connect(onClimbing)
  3088.  
  3089.  
  3090.  
  3091. end
  3092. end
  3093.  
  3094.  
  3095. if #Effects > 0 then
  3096. for e = 1, #Effects do
  3097. if Effects[e] ~= nil then
  3098. local Thing = Effects[e]
  3099. if Thing ~= nil then
  3100. local Part = Thing[1]
  3101. local Mode = Thing[2]
  3102. local Delay = Thing[3]
  3103. local IncX = Thing[4]
  3104. local IncY = Thing[5]
  3105. local IncZ = Thing[6]
  3106. if Thing[1].Transparency <= 1 then
  3107. if Thing[2] == "Block1" then
  3108. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3109. local Mesh = Thing[1].Mesh
  3110. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3111. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3112. elseif Thing[2] == "Block2" then
  3113. Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
  3114. local Mesh = Thing[7]
  3115. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3116. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3117. elseif Thing[2] == "Block3" then
  3118. 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)
  3119. local Mesh = Thing[7]
  3120. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3121. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3122. elseif Thing[2] == "Cylinder" then
  3123. local Mesh = Thing[1].Mesh
  3124. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3125. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3126. elseif Thing[2] == "Blood" then
  3127. local Mesh = Thing[7]
  3128. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  3129. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3130. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3131. elseif Thing[2] == "Elec" then
  3132. local Mesh = Thing[1].Mesh
  3133. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  3134. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3135. elseif Thing[2] == "Disappear" then
  3136. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3137. elseif Thing[2] == "Shatter" then
  3138. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3139. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  3140. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3141. Thing[6] = Thing[6] + Thing[5]
  3142. end
  3143. else
  3144. Part.Parent = nil
  3145. table.remove(Effects, e)
  3146. end
  3147. end
  3148. end
  3149. end
  3150. end
  3151. end)
  3152.  
  3153.  
  3154. Effects = {
  3155. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3156.  
  3157. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  3158. prt.Anchored = true
  3159. prt.CFrame = cframe
  3160. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3161. game:GetService("Debris"):AddItem(prt, 10)
  3162. if Type == 1 or Type == nil then
  3163. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  3164. else
  3165. if Type == 2 then
  3166. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  3167. else
  3168. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  3169. end
  3170. end
  3171. end
  3172. }
  3173. ,
  3174. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3175.  
  3176. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3177. prt.Anchored = true
  3178. prt.CFrame = cframe
  3179. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3180. game:GetService("Debris"):AddItem(prt, 10)
  3181. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3182. end
  3183. }
  3184. ,
  3185. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3186.  
  3187. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  3188. prt.Anchored = true
  3189. prt.CFrame = cframe
  3190. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3191. game:GetService("Debris"):AddItem(prt, 10)
  3192. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3193. end
  3194. }
  3195. ,
  3196. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3197.  
  3198. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3199. prt.Anchored = true
  3200. prt.CFrame = cframe
  3201. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
  3202. game:GetService("Debris"):AddItem(prt, 10)
  3203. table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
  3204. end
  3205. }
  3206. ,
  3207. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3208.  
  3209. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  3210. prt.Anchored = true
  3211. prt.CFrame = cframe
  3212. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3213. game:GetService("Debris"):AddItem(prt, 10)
  3214. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3215. end
  3216. }
  3217. ,
  3218. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  3219.  
  3220. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  3221. prt.Anchored = true
  3222. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3223. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3224. local num = math.random(10, 50) / 1000
  3225. game:GetService("Debris"):AddItem(prt, 10)
  3226. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  3227. end
  3228. }
  3229. }
  3230.  
  3231.  
  3232.  
  3233. RemoveOutlines = function(part)
  3234.  
  3235. part.TopSurface = 10
  3236. end
  3237.  
  3238. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3239.  
  3240. 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})
  3241. RemoveOutlines(Part)
  3242. return Part
  3243. end
  3244.  
  3245. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3246.  
  3247. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  3248. if Mesh == "SpecialMesh" then
  3249. Msh.MeshType = MeshType
  3250. Msh.MeshId = MeshId
  3251. end
  3252. return Msh
  3253. end
  3254.  
  3255. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  3256.  
  3257. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  3258. return Weld
  3259. end
  3260.  
  3261.  
  3262.  
  3263.  
  3264. WSHM = {'White',"Pastel light red"}
  3265. WSH = WSHM[math.random(1,#WSHM)]
  3266.  
  3267.  
  3268. IcePartFunk = function(HPart,aria,Min,Max)
  3269.  
  3270. IcePart = Instance.new("Part",HPart)
  3271. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  3272. IcePart.CanCollide = false
  3273. IuW = Instance.new("Weld")
  3274. IuW.Name = "GuW"
  3275. IuW.Part0 = HPart
  3276. 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))
  3277. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  3278. IuW.Part1 = IcePart
  3279. IuW.Parent = HPart
  3280. IcePart.Transparency = .85
  3281. IcePart.Material= "Neon"
  3282. WSH = WSHM[math.random(1,#WSHM)]
  3283. IcePart.BrickColor = BrickColor.new(""..WSH)
  3284.  
  3285. RemoveOutlines(IcePart)
  3286. game:GetService("Debris"):AddItem(IuW, 4)
  3287. game:GetService("Debris"):AddItem(IcePart, 6)
  3288.  
  3289.  
  3290. end
  3291. --[[
  3292. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
  3293.  
  3294. IcePart2 = Instance.new("Part",HPart)
  3295. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  3296. IcePart2.CanCollide = false
  3297. RemoveOutlines(IcePart2)
  3298. IcePart2.Anchored = true
  3299.  
  3300.  
  3301.  
  3302. IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309. IcePart2.Transparency = .85
  3310. IcePart2.Material= "Neon"
  3311.  
  3312. IcePart2.BrickColor = BrickColor.new(""..color)
  3313.  
  3314.  
  3315.  
  3316. game:GetService("Debris"):AddItem(IcePart2, 6)
  3317.  
  3318.  
  3319. end
  3320. --]]
  3321. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
  3322.  
  3323. IcePart2 = Instance.new("Part",HPart)
  3324. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  3325. IcePart2.CanCollide = false
  3326. RemoveOutlines(IcePart2)
  3327. IcePart2.Anchored = true
  3328. game:GetService("Debris"):AddItem(IcePart2, .4)
  3329. IcePart2.Transparency = .3
  3330. IcePart2.Material= "Neon"
  3331. IcePart2.BrickColor = BrickColor.new(""..color)
  3332.  
  3333. 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)))
  3334. for i = 0,num do
  3335. if num > 1 then
  3336. GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)
  3337. end
  3338. end
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350. end
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356. SpikeMeshId = 1033714
  3357. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  3358.  
  3359.  
  3360. local Part = Instance.new("Part", Parent)
  3361. Part.Name = Name
  3362. Part.BrickColor = BrickColor.new(Color)
  3363. Part.Size = Size
  3364. Part.Material = Material
  3365. Part.Transparency = Transparency
  3366. Part.CanCollide = false
  3367. RemoveOutlines(Part)
  3368.  
  3369. local Mesh = Instance.new("SpecialMesh", Part)
  3370. Mesh.MeshType = "Sphere"
  3371. Mesh.Scale = Scale
  3372.  
  3373. return Mesh and Part
  3374.  
  3375. end
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384. CFuncs = {
  3385. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3386.  
  3387. 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})
  3388. RemoveOutlines(Part)
  3389. return Part
  3390. end
  3391. }
  3392. ,
  3393. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3394.  
  3395. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  3396. if Mesh == "SpecialMesh" then
  3397. Msh.MeshType = MeshType
  3398. Msh.MeshId = MeshId
  3399. end
  3400. return Msh
  3401. end
  3402. }
  3403. ,
  3404. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3405.  
  3406. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  3407. if Mesh == "SpecialMesh" then
  3408. Msh.MeshType = MeshType
  3409. Msh.MeshId = MeshId
  3410. end
  3411. return Msh
  3412. end
  3413. }
  3414. ,
  3415. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  3416.  
  3417. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  3418. return Weld
  3419. end
  3420. }
  3421. ,
  3422. Sound = {Create = function(id, par, vol, pit)
  3423.  
  3424. coroutine.resume(coroutine.create(function()
  3425.  
  3426. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  3427. wait()
  3428. S:play()
  3429. game:GetService("Debris"):AddItem(S, 6)
  3430. end
  3431. ))
  3432. end
  3433. }
  3434. ,
  3435. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  3436.  
  3437. 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})
  3438. return fp
  3439. end
  3440. }
  3441. }
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  3448.  
  3449. if hit.Parent == nil then
  3450. return
  3451. end
  3452. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  3453. for _,v in pairs(hit.Parent:children()) do
  3454. if v:IsA("Humanoid") then
  3455. h.MaxHealth = 100
  3456. h = v
  3457. end
  3458. end
  3459. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3460. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3461. return
  3462. end
  3463. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  3464. game:GetService("Debris"):AddItem(c, 0.5)
  3465. if HitSound ~= nil and HitPitch ~= nil then
  3466. CreateSound(HitSound, hit, 1, HitPitch)
  3467. end
  3468. local Damage = math.random(minim, maxim)
  3469. local blocked = false
  3470. local block = hit.Parent:findFirstChild("Block")
  3471. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  3472. blocked = true
  3473. block.Value = block.Value - 1
  3474. print(block.Value)
  3475. end
  3476. if blocked == false then
  3477. h.Health = h.Health - Damage
  3478. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  3479. else
  3480. h.Health = h.Health - Damage / 2
  3481. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  3482. end
  3483. if hit.Parent:FindFirstChild("Torso") ~= nil then
  3484. lasthit = hit.Parent.Torso
  3485. end
  3486. if Type == "Knockdown" then
  3487. local hum = hit.Parent.Humanoid
  3488. hum.PlatformStand = true
  3489. coroutine.resume(coroutine.create(function(HHumanoid)
  3490.  
  3491. swait(.2)
  3492. HHumanoid.PlatformStand = false
  3493. end
  3494. ), hum)
  3495. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3496. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  3497. 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})
  3498. game:GetService("Debris"):AddItem(bodvol, 0.1)
  3499. game:GetService("Debris"):AddItem(rl, 0.1)
  3500. elseif Type == "Normal" then
  3501. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  3502. if knockback > 0 then
  3503. vp.Parent = hit.Parent.Torso
  3504. end
  3505. game:GetService("Debris"):AddItem(vp, 0.5)
  3506. elseif Type == "Impale" then
  3507.  
  3508. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))
  3509. Spike.Anchored = true
  3510. Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
  3511. Spike.Position = hit.Parent.Torso.Position
  3512.  
  3513. Services.Debris:AddItem(Spike, 4)
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  3521. hit.Parent.Humanoid.PlatformStand = true
  3522.  
  3523.  
  3524. swait(1)
  3525. hit.Parent.Humanoid.PlatformStand = false
  3526. elseif Type == "Up" then
  3527. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  3528. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  3529. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  3530. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  3531.  
  3532.  
  3533.  
  3534. elseif Type == "UltSlice" then
  3535.  
  3536. BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0, 0.01,2)
  3537. BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0, 0.01,2)
  3538. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.01,2)
  3539. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  3540. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  3541. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  3542. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  3543.  
  3544.  
  3545. elseif Type == "Slice" then
  3546. 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})
  3547. game:GetService("Debris"):AddItem(bp2, 1)
  3548.  
  3549. if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  3550. for i = 1,10 do
  3551. Effects.Break.Create (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
  3552.  
  3553.  
  3554. end
  3555. end
  3556.  
  3557.  
  3558.  
  3559.  
  3560. elseif Type == "Snare" then
  3561. 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})
  3562. game:GetService("Debris"):AddItem(bp, 1)
  3563. elseif Type == "Slowness" then
  3564. local SpeedSave=hit.Parent.Humanoid.WalkSpeed
  3565.  
  3566. for i = 1,25 do
  3567. hit.Parent.Humanoid.WalkSpeed = 4
  3568. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  3569. end
  3570. wait(4)
  3571. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  3572. elseif Type == "Firedmg" then
  3573.  
  3574. for i = 1,math.random(1, 6) do
  3575. if hit.Parent:FindFirstChild("Torso") ~= nil then
  3576. BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  3577. BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  3578. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  3579.  
  3580.  
  3581.  
  3582. wait(.1)
  3583. end
  3584. end
  3585.  
  3586. elseif Type == "Freeze" then
  3587. 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})
  3588. game:GetService("Debris"):AddItem(bp, 4)
  3589. for i=1,25 do
  3590. IcePartFunk(hit.Parent.Torso,1,1.5,2)
  3591. end
  3592. elseif Type == "Freeze2" then
  3593. 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})
  3594. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  3595. hit.Parent.Torso.Anchored = true
  3596. coroutine.resume(coroutine.create(function(Part)
  3597.  
  3598. swait(1.5)
  3599. Part.Anchored = false
  3600. end
  3601. ), hit.Parent.Torso)
  3602. game:GetService("Debris"):AddItem(BodPos, 3)
  3603. game:GetService("Debris"):AddItem(BodGy, 3)
  3604. end
  3605. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  3606. game:GetService("Debris"):AddItem(debounce, Delay)
  3607. c = Instance.new("ObjectValue")
  3608. c.Name = "creator"
  3609. c.Value = Player
  3610. c.Parent = h
  3611. game:GetService("Debris"):AddItem(c, 0.5)
  3612. end
  3613. end
  3614.  
  3615. ShowDamage = function(Pos, Text, Time, Color)
  3616.  
  3617. local Rate = 0.033333333333333
  3618. if not Pos then
  3619. local Pos = Vector3.new(0, 0, 0)
  3620. end
  3621. local Text = Text or ""
  3622. local Time = Time or 2
  3623. if not Color then
  3624. local Color = Color3.new(1, 0, 1)
  3625. end
  3626. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  3627. EffectPart.Anchored = true
  3628. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  3629. 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})
  3630. game.Debris:AddItem(EffectPart, Time + 0.1)
  3631. EffectPart.Parent = game:GetService("Workspace")
  3632. delay(0, function()
  3633.  
  3634. local Frames = Time / Rate
  3635. for Frame = 1, Frames do
  3636. wait(Rate)
  3637. local Percent = Frame / Frames
  3638. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  3639. TextLabel.TextTransparency = Percent
  3640. end
  3641. if EffectPart and EffectPart.Parent then
  3642. EffectPart:Destroy()
  3643. end
  3644. end
  3645. )
  3646. end
  3647.  
  3648. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  3649.  
  3650. for _,c in pairs(workspace:children()) do
  3651. local hum = c:findFirstChildOfClass("Humanoid")
  3652. if hum ~= nil then
  3653. local head = c:findFirstChild("Head")
  3654. if head ~= nil then
  3655. local targ = head.Position - Part.Position
  3656. local mag = targ.magnitude
  3657. if mag <= magni and c.Name ~= Player.Name then
  3658. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2)
  3659. end
  3660. end
  3661. end
  3662. end
  3663. end
  3664. MagniKILL = function(Part, magni, knock, Type)
  3665.  
  3666. for _,c in pairs(workspace:children()) do
  3667. local hum = c:findFirstChildOfClass("Humanoid")
  3668. if hum ~= nil then
  3669. local head = c:findFirstChild("Head")
  3670. if head ~= nil then
  3671. local targ = head.Position - Part.Position
  3672. local mag = targ.magnitude
  3673. if mag <= magni and c.Name ~= Player.Name then
  3674. hum.Health = 0
  3675. end
  3676. end
  3677. end
  3678. end
  3679. end
  3680. EffectModel = Instance.new("Model", Character)
  3681. EffectModel.Name = "Effects"
  3682.  
  3683. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3684.  
  3685. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3686. prt.Anchored = true
  3687. prt.CFrame = cframe
  3688. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3689. game:GetService("Debris"):AddItem(prt, 10)
  3690. if Type == 1 or Type == nil then
  3691. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  3692. else
  3693. if Type == 2 then
  3694. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  3695. else
  3696. if Type == 3 then
  3697. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  3698. end
  3699. end
  3700. end
  3701. end
  3702. CreateSound = function(id, par, vol, pit)
  3703.  
  3704. coroutine.resume(coroutine.create(function()
  3705.  
  3706. local sou = Instance.new("Sound", par or workspace)
  3707. sou.Volume = vol
  3708. sou.Pitch = pit or 1
  3709. sou.SoundId = id
  3710. swait()
  3711. sou:play()
  3712. game:GetService("Debris"):AddItem(sou, 6)
  3713. end
  3714. ))
  3715. end
  3716.  
  3717. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3718.  
  3719. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  3720. prt.Anchored = true
  3721. prt.CFrame = cframe
  3722. prt.Material = "Neon"
  3723. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3724. game:GetService("Debris"):AddItem(prt, 10)
  3725. coroutine.resume(coroutine.create(function(Part, Mesh)
  3726.  
  3727. for i = 0, 6, delay do
  3728. swait()
  3729. Part.Transparency = i
  3730. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  3731. end
  3732. Part.Parent = nil
  3733. end
  3734. ), prt, msh)
  3735. end
  3736.  
  3737. shoottraildd = function(mouse, partt, SpreadAmount)
  3738.  
  3739. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
  3740. local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
  3741. local MainPos2 = mouse + SpreadVectors
  3742. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  3743. local speed = 100
  3744. local num = 1
  3745. coroutine.resume(coroutine.create(function()
  3746.  
  3747. repeat
  3748. swait()
  3749. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  3750. local mag = (MainPos - pos).magnitude
  3751. 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)
  3752. MainPos = MainPos + MouseLook.lookVector * speed
  3753. num = num - 1
  3754. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  3755. if hit ~= nil then
  3756. num = 0
  3757. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3758. refpart.Anchored = true
  3759. refpart.CFrame = CFrame.new(pos)
  3760. game:GetService("Debris"):AddItem(refpart, 2)
  3761. end
  3762. do
  3763. if num <= 0 then
  3764. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3765. refpart.Anchored = true
  3766. refpart.CFrame = CFrame.new(pos)
  3767. if hit ~= nil then
  3768.  
  3769.  
  3770.  
  3771. GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
  3772. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
  3773. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  3774. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  3775. MagniDamage(refpart, 6, 10, 25, 0, "Slice")
  3776. end
  3777. game:GetService("Debris"):AddItem(refpart, 0)
  3778. end
  3779. end
  3780. until num <= 0
  3781. end
  3782. ))
  3783. end
  3784.  
  3785. shoottraildd2 = function(mouse, partt, SpreadAmount)
  3786.  
  3787. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  3788. local MainPos = partt.Position
  3789. local MainPos2 = mouse + SpreadVectors
  3790. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  3791. local speed = 1000
  3792. local num = 1
  3793. coroutine.resume(coroutine.create(function()
  3794.  
  3795. repeat
  3796. swait()
  3797. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  3798. local mag = (MainPos - pos).magnitude
  3799. 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)
  3800. MainPos = MainPos + MouseLook.lookVector * speed
  3801. num = num - 1
  3802. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  3803. if hit ~= nil then
  3804. num = 0
  3805. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3806. refpart.Anchored = true
  3807. refpart.CFrame = CFrame.new(pos)
  3808. game:GetService("Debris"):AddItem(refpart, 2)
  3809. end
  3810. do
  3811. if num <= 0 then
  3812. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3813. refpart.Anchored = true
  3814. refpart.CFrame = CFrame.new(pos)
  3815. if hit ~= nil then
  3816. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  3817. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  3818. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  3819. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  3820. MagniKILL(refpart, 80, 0, "Normal")
  3821. end
  3822. game:GetService("Debris"):AddItem(refpart, 0)
  3823. end
  3824. end
  3825. until num <= 0
  3826. end
  3827. ))
  3828. end
  3829.  
  3830. shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  3831.  
  3832. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  3833. local MainPos = partt.Position
  3834. local MainPos2 = mouse + SpreadVectors
  3835. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  3836. local speed = 200
  3837. local num = 0
  3838. coroutine.resume(coroutine.create(function()
  3839.  
  3840. repeat
  3841. swait()
  3842. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  3843. local mag = (MainPos - pos).magnitude
  3844. 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)
  3845. MainPos = MainPos + MouseLook.lookVector * speed
  3846. num = num - 1
  3847. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  3848. if hit ~= nil then
  3849. num = 0
  3850. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3851. refpart.Anchored = true
  3852. refpart.CFrame = CFrame.new(pos)
  3853. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  3854. game:GetService("Debris"):AddItem(refpart, 2)
  3855. end
  3856. do
  3857. if num <= 0 then
  3858. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3859. refpart.Anchored = true
  3860. refpart.CFrame = CFrame.new(pos)
  3861. if hit ~= nil then
  3862. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  3863. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  3864. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  3865.  
  3866.  
  3867. MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  3868.  
  3869. end
  3870. game:GetService("Debris"):AddItem(refpart, 0)
  3871. end
  3872. end
  3873. until num <= 0
  3874. end
  3875. ))
  3876. end
  3877.  
  3878. shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  3879.  
  3880. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  3881. local MainPos = partt.Position
  3882. local MainPos2 = mouse + SpreadVectors
  3883. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  3884. local speed = 150
  3885. local num = 1
  3886. coroutine.resume(coroutine.create(function()
  3887.  
  3888. repeat
  3889. swait()
  3890. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  3891. local mag = (MainPos - pos).magnitude
  3892. 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)
  3893. MainPos = MainPos + MouseLook.lookVector * speed
  3894. num = num - 1
  3895. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  3896. if hit ~= nil then
  3897. num = 0
  3898. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3899. refpart.Anchored = true
  3900. refpart.CFrame = CFrame.new(pos)
  3901. game:GetService("Debris"):AddItem(refpart, 2)
  3902. end
  3903. do
  3904. if num <= 0 then
  3905. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  3906. refpart.Anchored = true
  3907. refpart.CFrame = CFrame.new(pos)
  3908. if hit ~= nil then
  3909. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  3910. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  3911. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  3912. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  3913. MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  3914. end
  3915. game:GetService("Debris"):AddItem(refpart, 0)
  3916. end
  3917. end
  3918. until num <= 0
  3919. end
  3920. ))
  3921. end
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  3930.  
  3931. Hitpart3 = Instance.new("Part",HPart3)
  3932. RemoveOutlines(Hitpart3)
  3933. Hitpart3.Size = Vector3.new(1,1,1)
  3934. Hitpart3.CanCollide = false
  3935. HuW3 = Instance.new("Weld")
  3936. HuW3.Name = "GuW"
  3937. HuW3.Part0 = HPart3
  3938. HuW3.C0 = cn(Xv, Yv, Zv)
  3939. HuW3.C1 = cn(0, 0, 0)
  3940. HuW3.Part1 = Hitpart3
  3941. HuW3.Parent = HPart3
  3942. Hitpart3.Transparency = 1
  3943. game:GetService("Debris"):AddItem(Hitpart3, 20)
  3944. end
  3945.  
  3946. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  3947.  
  3948. Hitpart2 = Instance.new("Part",HPart2)
  3949. RemoveOutlines(Hitpart2)
  3950. Hitpart2.Size = Vector3.new(1,1,1)
  3951. Hitpart2.CanCollide = false
  3952. HuW2 = Instance.new("Weld")
  3953. HuW2.Name = "GuW"
  3954. HuW2.Part0 = HPart2
  3955. HuW2.C0 = cn(Xv, Yv, Zv)
  3956. HuW2.C1 = cn(0, 0, 0)
  3957. HuW2.Part1 = Hitpart2
  3958. HuW2.Parent = HPart2
  3959. Hitpart2.Transparency = 1
  3960. game:GetService("Debris"):AddItem(Hitpart2, 20)
  3961. end
  3962.  
  3963.  
  3964. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  3965.  
  3966. Hitpart = Instance.new("Part",HPart)
  3967. RemoveOutlines(Hitpart)
  3968. Hitpart.Size = Vector3.new(1,1,1)
  3969. Hitpart.CanCollide = false
  3970. HuW = Instance.new("Weld")
  3971. HuW.Name = "GuW"
  3972. HuW.Part0 = HPart
  3973. HuW.C0 = cn(Xv, Yv, Zv)
  3974. HuW.C1 = cn(0, 0, 0)
  3975. HuW.Part1 = Hitpart
  3976. HuW.Parent = HPart
  3977. Hitpart.Transparency = 1
  3978. game:GetService("Debris"):AddItem(Hitpart2, 20)
  3979. MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
  3980.  
  3981. end
  3982. HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  3983.  
  3984. Hitpart4 = Instance.new("Part",HPart)
  3985. RemoveOutlines(Hitpart4)
  3986. Hitpart4.Size = Vector3.new(1,1,1)
  3987. Hitpart4.CanCollide = false
  3988. HuW4 = Instance.new("Weld")
  3989. HuW4.Name = "HuW4"
  3990. HuW4.Part0 = HPart
  3991. HuW4.C0 = cn(Xv, Yv, Zv)
  3992. HuW4.C1 = cn(0, 0, 0)
  3993. HuW4.Part1 = Hitpart4
  3994. HuW4.Parent = HPart
  3995. Hitpart4.Transparency = 1
  3996. game:GetService("Debris"):AddItem(Hitpart4, 1.5)
  3997. MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
  3998.  
  3999. end
  4000.  
  4001.  
  4002. HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
  4003.  
  4004. Hitboxpart = Instance.new("Part",Character)
  4005. RemoveOutlines(Hitboxpart)
  4006. Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
  4007. Hitboxpart.CanCollide = false
  4008. Hitboxpart.Transparency = 1
  4009. Hitboxpart.Anchored = true
  4010. Hitboxpart.CFrame = Pose
  4011. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  4012. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  4013.  
  4014. end
  4015.  
  4016.  
  4017. wait2 = false
  4018.  
  4019.  
  4020. combo = 1
  4021.  
  4022.  
  4023.  
  4024.  
  4025. duljump = false
  4026. duljump2 = false
  4027. jumpatck = false
  4028. mouse.KeyDown:connect(function(k)
  4029. if k == "0" then
  4030. CFuncs['Sound'].Create("rbxassetid://891338458",Character,6,1)
  4031. Runkey = true
  4032. end
  4033. if k == "x" then
  4034. airtime:play()
  4035. end
  4036. if k == "c" then
  4037. CFuncs['Sound'].Create("rbxassetid://892075913",Character,6,1)
  4038. end
  4039. if k == "q" and attack == false then
  4040. attack = true
  4041. Humanoid.WalkSpeed = 0
  4042. IKM = true
  4043. body.BrickColor = BrickColor.new("New Yeller")
  4044. body.Color = Color3.new(1,1,0)
  4045. body.Reflectance = 0
  4046. particle.LightEmission = 0.3
  4047. particle.Texture = "rbxassetid://241629053"
  4048. particle.Color = ColorSequence.new(Color3.new(1,1,0))
  4049. particle.Enabled = true
  4050. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4051. wait(0.1)
  4052. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4053. wait(1)
  4054. particle.Enabled = false
  4055. wait(2)
  4056. Humanoid.WalkSpeed = 30
  4057. attack = false
  4058. end
  4059.  
  4060. if k == "t" and attack == false then
  4061. attack = true
  4062. IKM = false
  4063. Humanoid.WalkSpeed = 0
  4064. body.BrickColor = BrickColor.new("Really red")
  4065. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  4066. body.Reflectance = 0.5
  4067. particle.LightEmission = 0.3
  4068. particle.Texture = "rbxassetid://241629053"
  4069. particle.Color = ColorSequence.new(Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)))
  4070. particle.Enabled = true
  4071. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4072. wait(0.1)
  4073. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4074. wait(1)
  4075. particle.Enabled = false
  4076. wait(2)
  4077. Humanoid.WalkSpeed = 30
  4078. attack = false
  4079. end
  4080.  
  4081. if k == "y" and attack == false then
  4082. attack = true
  4083. IKM = true
  4084. Humanoid.WalkSpeed = 0
  4085. body.BrickColor = BrickColor.new("Really red")
  4086. body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  4087. body.Reflectance = 0.5
  4088. particle.LightEmission = 0.9
  4089. particle.Texture = "rbxassetid://280516525"
  4090. particle.Color = ColorSequence.new(ColorsArray)
  4091. particle.Enabled = true
  4092. CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
  4093. wait(0.1)
  4094. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4095. wait(1)
  4096. particle.Enabled = false
  4097. wait(2)
  4098. Humanoid.WalkSpeed = 30
  4099. attack = false
  4100. end
  4101.  
  4102. if k == "r" and attack == false then
  4103. attack = true
  4104. Humanoid.WalkSpeed = 0
  4105. IKM = false
  4106. body.BrickColor = BrickColor.new("Really Blue")
  4107. body.Color = Color3.new(0,0,1)
  4108. body.Reflectance = 0
  4109. particle.LightEmission = 0.3
  4110. particle.Texture = "rbxassetid://241629053"
  4111. particle.Color = ColorSequence.new(Color3.new(0,0,1))
  4112. particle.Enabled = true
  4113. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4114. wait(0.1)
  4115. CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
  4116. wait(1)
  4117. particle.Enabled = false
  4118. wait(2)
  4119. Humanoid.WalkSpeed = 30
  4120. attack = false
  4121. end
  4122.  
  4123. if k == "e" and attack == false then
  4124. attack = true
  4125.  
  4126. Humanoid.WalkSpeed = 0
  4127.  
  4128. CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)
  4129.  
  4130. for i = 0, 2, 0.1 do
  4131. swait()
  4132.  
  4133. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  4134. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  4135. 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)
  4136. 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)
  4137. 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)
  4138. 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)
  4139. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  4140.  
  4141.  
  4142.  
  4143. end
  4144.  
  4145. for i = 0, 4, 0.1 do
  4146. swait()
  4147.  
  4148. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  4149. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  4150. 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)
  4151. 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)
  4152. 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)
  4153. 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)
  4154. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  4155.  
  4156.  
  4157.  
  4158. end
  4159. for i = 0, 1 do
  4160. for i = 0, 1, 0.1 do
  4161. swait()
  4162.  
  4163. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  4164. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  4165. 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)
  4166. 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)
  4167. 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)
  4168. 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)
  4169. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  4170.  
  4171.  
  4172.  
  4173. end
  4174. for i = 0, 1, 0.1 do
  4175. swait()
  4176.  
  4177. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  4178. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  4179. 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)
  4180. 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)
  4181. 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)
  4182. 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)
  4183. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  4184.  
  4185.  
  4186.  
  4187. end
  4188. end
  4189.  
  4190. Humanoid.WalkSpeed = 30
  4191.  
  4192. attack = false
  4193.  
  4194.  
  4195.  
  4196.  
  4197. end
  4198.  
  4199.  
  4200.  
  4201.  
  4202.  
  4203.  
  4204.  
  4205.  
  4206.  
  4207.  
  4208.  
  4209.  
  4210.  
  4211.  
  4212.  
  4213.  
  4214.  
  4215. end)
  4216. hitwait = false
  4217. function onTouch(part)
  4218.  
  4219. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  4220. local model = part.Parent
  4221. local torso = part.Parent:FindFirstChild("Torso")
  4222. local head = part.Parent:findFirstChild("Head")
  4223. local leftleg = part.Parent:findFirstChild("Left Leg")
  4224. local rightleg = part.Parent:findFirstChild("Right Leg")
  4225. local leftarm = part.Parent:findFirstChild("Left Arm")
  4226. local rightarm = part.Parent:findFirstChild("Right Arm")
  4227.  
  4228. if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
  4229.  
  4230. hitwait = true
  4231.  
  4232.  
  4233.  
  4234.  
  4235. if (humanoid ~=nil) and humanoid.Health >0.01 and Torsovelocity > 1 then
  4236.  
  4237. if IKM == true then
  4238. Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)
  4239. Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)
  4240. model:BreakJoints()
  4241. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  4242. local sel = math.random(3)
  4243. if sel == 1 then
  4244. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  4245. end
  4246. if sel == 2 then
  4247. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  4248. end
  4249. if sel == 3 then
  4250. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  4251. end
  4252.  
  4253. else
  4254. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
  4255. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)
  4256. MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown")
  4257. CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
  4258. local sel = math.random(3)
  4259. if sel == 1 then
  4260. CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
  4261. end
  4262. if sel == 2 then
  4263. CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
  4264. end
  4265. if sel == 3 then
  4266. CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
  4267. end
  4268. end
  4269.  
  4270. attack = true
  4271. Humanoid.WalkSpeed = 0
  4272. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
  4273.  
  4274. game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
  4275.  
  4276. for i = 0, .5, 0.1 do
  4277. swait()
  4278.  
  4279. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
  4280. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  4281. 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)
  4282. 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)
  4283. 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)
  4284. 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)
  4285. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)
  4286.  
  4287.  
  4288.  
  4289. end
  4290.  
  4291.  
  4292. Humanoid.WalkSpeed = 30
  4293. end
  4294. attack = false
  4295. wait(.08)
  4296. hitwait = false
  4297. end
  4298.  
  4299. end
  4300. FrontPart.Touched:connect(onTouch)
  4301.  
  4302.  
  4303.  
  4304. mouse.KeyUp:connect(function(k)
  4305. if k == "0"then
  4306. Runkey = false
  4307.  
  4308. end
  4309.  
  4310.  
  4311.  
  4312.  
  4313.  
  4314.  
  4315. end)
  4316.  
  4317. humHsave = Humanoid.Health
  4318. function GainCharge(Humanoid)
  4319. if Humanoid.Health == 0 then
  4320. equipped = false
  4321. end
  4322. if blocking == true then
  4323.  
  4324. humDsave = Humanoid.Health
  4325. humDsave = humHsave - humDsave
  4326. if humDsave >0.01 then
  4327.  
  4328. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)
  4329. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1, 0.02,2)
  4330. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  4331. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  4332. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  4333. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  4334. humDsave = humDsave/3
  4335. end
  4336. if humDsave <0 then
  4337.  
  4338.  
  4339. Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
  4340. --[[
  4341. BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.1,2)
  4342. BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  4343. BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  4344. BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  4345. BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  4346. --]]
  4347. humDsave = humDsave*2.5
  4348. end
  4349.  
  4350. humHsave = humHsave - humDsave
  4351.  
  4352.  
  4353.  
  4354.  
  4355. end
  4356.  
  4357. end
  4358.  
  4359. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  4360.  
  4361.  
  4362. OnDeath = function()
  4363.  
  4364. equipped = false
  4365.  
  4366.  
  4367.  
  4368. end
  4369.  
  4370. Humanoid.Died:connect(function()OnDeath(Character)end)
  4371.  
  4372.  
  4373.  
  4374. print('This fucking masterpiece was totally not created by xiaxiaokid.')
  4375. local music=Instance.new('Sound',inside)
  4376. music.Name='ok music'
  4377. music.Volume=7
  4378. music.Pitch=1
  4379. music.Looped=true
  4380. music.SoundId = "rbxassetid://737286463"
  4381. local gui=Instance.new('ScreenGui',Player.PlayerGui)
  4382. gui.Name='you make me cri'
  4383. local topFrame=Instance.new('Frame',gui)
  4384. topFrame.Name='TopFrame'
  4385. topFrame.Size=UDim2.new(1,0,1,0)
  4386. topFrame.BorderSizePixel=0
  4387. topFrame.BackgroundTransparency=1
  4388. local choiceFrame=Instance.new('Frame',topFrame)
  4389. choiceFrame.Size=UDim2.new(.4,0,.05,0)
  4390. choiceFrame.Draggable=true
  4391. choiceFrame.BackgroundTransparency=.7
  4392. choiceFrame.Position=UDim2.new(.5,0,.775,0)
  4393. choiceFrame.BackgroundColor3=Color3.new(0,0,0)
  4394. choiceFrame.BorderColor3=Color3.new(0,0,0)
  4395. local innerFrame3=Instance.new('Frame',choiceFrame)
  4396. innerFrame3.Size=UDim2.new(.5,0,1,0)
  4397. innerFrame3.Position=UDim2.new(.5,0,0,0)
  4398. innerFrame3.Draggable=true
  4399. innerFrame3.BackgroundTransparency=.9
  4400. innerFrame3.BackgroundColor3=Color3.new(0,0,0)
  4401. innerFrame3.BorderColor3=Color3.new(0,0,0)
  4402. local innerFrame4=Instance.new('Frame',choiceFrame)
  4403. innerFrame4.Size=UDim2.new(.5,0,1,0)
  4404. innerFrame4.Draggable=false
  4405. innerFrame4.BackgroundTransparency=.5
  4406. innerFrame4.Position=UDim2.new(.5,0,1,1)
  4407. innerFrame4.BackgroundColor3=Color3.new(0,0,0)
  4408. innerFrame4.BorderColor3=Color3.new(0,0,0)
  4409. local musicID=Instance.new('TextBox',innerFrame4)
  4410. musicID.Size=UDim2.new(.8,0,.7,0)
  4411. musicID.Position=UDim2.new(.1,0,.15,0)
  4412. musicID.BackgroundTransparency=.7
  4413. musicID.Visible=true
  4414. musicID.Text="Music ID (press enter to use the audio)"
  4415. musicID.TextScaled=true
  4416. musicID.TextStrokeTransparency=0
  4417. musicID.TextColor3=Color3.new(0,255,255)
  4418. musicID.BackgroundColor3=Color3.new(0,0,0)
  4419. musicID.BorderColor3=Color3.new(0,0,0)
  4420. musicID.FocusLost:connect(function(ent)
  4421. if ent then
  4422. music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
  4423. end
  4424. end)
  4425. local bt3=Instance.new('TextButton',innerFrame3)
  4426. bt3.Draggable=false
  4427. bt3.BackgroundTransparency=.9
  4428. bt3.BackgroundColor3=Color3.new(0,0,0)
  4429. bt3.Size=UDim2.new(.5,0,1,0)
  4430. bt3.Text="Play"
  4431. bt3.TextStrokeTransparency=0
  4432. bt3.TextColor3=Color3.new(0,255,255)
  4433. bt3.TextScaled=true
  4434. bt3.Font="SciFi"
  4435. bt3.MouseButton1Click:connect(function()
  4436. if not music.IsPlaying then
  4437. musicID.Visible=false
  4438. music:play''
  4439. innerFrame4.Visible=false
  4440. end
  4441. end)
  4442. local bt4=Instance.new('TextButton',innerFrame3)
  4443. bt4.Draggable=false
  4444. bt4.BackgroundTransparency=.9
  4445. bt4.BackgroundColor3=Color3.new(0,0,0)
  4446. bt4.Size=UDim2.new(.5,0,1,0)
  4447. bt4.Position=UDim2.new(.5,0,0,0)
  4448. bt4.Text="Stop"
  4449. bt4.TextStrokeTransparency=0
  4450. bt4.TextColor3=Color3.new(0,255,255)
  4451. bt4.TextScaled=true
  4452. bt4.Font="SciFi"
  4453. bt4.MouseButton1Click:connect(function()
  4454. if music.IsPlaying then
  4455. music:stop''
  4456. musicID.Visible=true
  4457. innerFrame4.Visible=true
  4458. end
  4459. end)
  4460. while true do
  4461. swait()
  4462. Humanoid.Name = "fnwihjfbewuhgbewjhgbrjhge"
  4463. Humanoid.MaxHealth = math.huge
  4464. Humanoid.Health = math.huge
  4465. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement