artucox7

Anti-Skids Sing

Aug 31st, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.38 KB | None | 0 0
  1. --// Artuco's Anti Skids Sing Boie \\--
  2.  
  3.  
  4. wait(0.01)
  5. local plr = game.Players.LocalPlayer
  6. local char = plr.Character
  7. local hed = char.Head
  8. local tors = char.Torso
  9. local Torso = tors
  10. local hum = char.Humanoid
  11. local mouse,Mouse = plr:GetMouse()
  12. local Player = plr
  13. local Character = char
  14. local Humanoid = hum
  15. local RA = char["Right Arm"]
  16. local LA = char["Left Arm"]
  17. local RL = char["Right Leg"]
  18. local LL = char["Left Leg"]
  19. local root = char.HumanoidRootPart
  20. local equipped = false
  21. local idle = 0
  22. local change = 1
  23. local val = 0
  24. local toim = 0
  25. local idleanim = 0.4
  26. local rainbowmode = false
  27. local chaosmode = false
  28. modz = Instance.new("Model")
  29. modz.Name = "efx"
  30. modz.Parent = char
  31. Heartbeat = Instance.new("BindableEvent")
  32. Heartbeat.Name = "Heartbeat"
  33. Heartbeat.Parent = script
  34. LS=tors["Left Shoulder"]
  35. LH=tors["Left Hip"]
  36. RS=tors["Right Shoulder"]
  37. RH=tors["Right Hip"]
  38. Neck=tors.Neck
  39. radical = math.rad
  40. angles=CFrame.Angles
  41. random = math.random
  42. Vec3 = Vector3.new
  43. Inst = Instance.new
  44. cFrame = CFrame.new
  45. Euler = CFrame.fromEulerAnglesXYZ
  46. vt = Vector3.new
  47. bc = BrickColor.new
  48. br = BrickColor.random
  49. it = Instance.new
  50. cf = CFrame.new
  51. IT = Instance.new
  52. CF = CFrame.new
  53. VT = Vector3.new
  54. RAD = math.rad
  55. C3 = Color3.new
  56. UD2 = UDim2.new
  57. BRICKC = BrickColor.new
  58. ANGLES = CFrame.Angles
  59. EULER = CFrame.fromEulerAnglesXYZ
  60. COS = math.cos
  61. ACOS = math.acos
  62. SIN = math.sin
  63. ASIN = math.asin
  64. ABS = math.abs
  65. Mrandom = math.random
  66. Cos = math.cos
  67. Acos = math.acos
  68. FLOOR = math.floor
  69. Player_Size = 1 --Size of the player.
  70. Animation_Speed = 1
  71. Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
  72. CF = CFrame.new
  73. VT = Vector3.new
  74. angles = CFrame.Angles
  75. attack = false
  76. Euler = CFrame.fromEulerAnglesXYZ
  77. Rad = math.rad
  78. IT = Instance.new
  79. BrickC = BrickColor.new
  80. Cos = math.cos
  81. Acos = math.acos
  82. Sin = math.sin
  83. Asin = math.asin
  84. Abs = math.abs
  85. Mrandom = math.random
  86. Floor = math.floor
  87. rd2 = math.random
  88. local CHANGE = 2 / Animation_Speed
  89. local cn = CFrame.new
  90. local mr = math.rad
  91. local angles = CFrame.Angles
  92. local ud = UDim2.new
  93. local c3 = Color3.new
  94. local Speed = 20
  95. local r = 255
  96. local g = 0
  97. local b = 0
  98. local Effects2 = {}
  99. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  100. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  101. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  102. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  103. local idle=0
  104. local Anim="Idle"
  105. local Effects={}
  106. local gun=false
  107. local shoot=false
  108. local sine = 0
  109. local change = 1
  110. local ANIMATE = char.Animate
  111. local ROBLOXIDLEANIMATION = IT("Animation")
  112. local RootPart = char.HumanoidRootPart
  113. local RootJoint = RootPart.RootJoint
  114. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  115. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  116. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  117. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  118. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  119. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  120. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  121. necko=CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  122. necko2=CF(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  123. LHC0=CF(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  124. LHC1=CF(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  125. RHC0=CF(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  126. RHC1=CF(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  127. RootPart=char.HumanoidRootPart
  128. RootJoint=RootPart.RootJoint
  129. RootCF=Euler(-1.57,0,3.14)
  130. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  131. RSH, LSH = nil, nil
  132. RW = Instance.new("Weld")
  133. LW = Instance.new("Weld")
  134. RH = tors["Right Hip"]
  135. LH = tors["Left Hip"]
  136. RSH = tors["Right Shoulder"]
  137. LSH = tors["Left Shoulder"]
  138. RSH.Parent = nil
  139. LSH.Parent = nil
  140. RW.Name = "RW"
  141. RW.Part0 = tors
  142. RW.C0 = CF(1.5, 0.5, 0)
  143. RW.C1 = CF(0, 0.5, 0)
  144. RW.Part1 = RA
  145. RW.Parent = tors
  146. LW.Name = "LW"
  147. LW.Part0 = tors
  148. LW.C0 = CF(-1.5, 0.5, 0)
  149. LW.C1 = CF(0, 0.5, 0)
  150. LW.Part1 = LA
  151. LW.Parent = tors
  152. Effects = {}
  153.  
  154.  
  155. --Functions
  156.  
  157. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  158. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  159. end
  160.  
  161. function swait(num)
  162. if num == 0 or num == nil then
  163. Heartbeat.Event:wait()
  164. else
  165. for i = 1, num do
  166. Heartbeat.Event:wait()
  167. end
  168. end
  169. end
  170.  
  171. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  172. local type = type
  173. local rng = Instance.new("Part", char)
  174. rng.Anchored = true
  175. rng.BrickColor = color
  176. rng.CanCollide = false
  177. rng.FormFactor = 3
  178. rng.Name = "Ring"
  179. rng.Material = "Neon"
  180. rng.Size = Vector3.new(1, 1, 1)
  181. rng.Transparency = 0
  182. rng.TopSurface = 0
  183. rng.BottomSurface = 0
  184. rng.CFrame = pos
  185. local rngm = Instance.new("SpecialMesh", rng)
  186. rngm.MeshType = "Sphere"
  187. rngm.Scale = scale
  188. local scaler2 = 1
  189. local scaler2b = 1
  190. local scaler2c = 1
  191. if type == "Add" then
  192. scaler2 = 1*value
  193. scaler2b = 1*value2
  194. scaler2c = 1*value3
  195. elseif type == "Divide" then
  196. scaler2 = 1/value
  197. scaler2b = 1/value2
  198. scaler2c = 1/value3
  199. end
  200. coroutine.resume(coroutine.create(function()
  201. for i = 0,10/bonuspeed,0.1 do
  202. wait(0.01)
  203. if type == "Add" then
  204. scaler2 = scaler2 - 0.01*value/bonuspeed
  205. scaler2b = scaler2b - 0.01*value/bonuspeed
  206. scaler2c = scaler2c - 0.01*value/bonuspeed
  207. elseif type == "Divide" then
  208. scaler2 = scaler2 - 0.01/value*bonuspeed
  209. scaler2b = scaler2b - 0.01/value*bonuspeed
  210. scaler2c = scaler2c - 0.01/value*bonuspeed
  211. end
  212. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  213. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  214. end
  215. rng:Destroy()
  216. end))
  217. end
  218.  
  219. function chatfunc(Text,chatcolor,font)
  220. local chat = coroutine.wrap(function()
  221. if char:FindFirstChild("TalkingBillBoard")~= nil then
  222. char:FindFirstChild("TalkingBillBoard"):destroy()
  223. end
  224. local Bill = Instance.new("BillboardGui",hed)
  225. Bill.Size = UDim2.new(0,100,0,40)
  226. Bill.StudsOffset = Vector3.new(0,3,0)
  227. Bill.Name = "TalkingBillBoard"
  228. local Hehe = Instance.new("TextLabel",Bill)
  229. Hehe.BackgroundTransparency = 1
  230. Hehe.BorderSizePixel = 0
  231. Hehe.Text = Text
  232. Hehe.Font = font
  233. Hehe.TextSize = 40
  234. Hehe.TextStrokeTransparency = 0
  235. Hehe.TextColor3 = Color3.new(chatcolor)
  236. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  237. Hehe.Size = UDim2.new(1,0,0.5,0)
  238. coroutine.resume(coroutine.create(function()
  239. while Hehe ~= nil do
  240. wait(0.01)
  241. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  242. Hehe.Rotation = math.random(-2.5,2.5)
  243. end
  244. end))
  245. for i = 1,string.len(Text) do
  246. wait(0.01)
  247. Hehe.Text = string.sub(Text,1,i)
  248. end
  249. for i = 0, 1, .025 do
  250. wait(0.01)
  251. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  252. Hehe.TextStrokeTransparency = i
  253. Hehe.TextTransparency = i
  254. end
  255. Bill:Destroy()
  256. end)
  257. chat()
  258. end
  259.  
  260.  
  261. function QuaternionFromCFrame(cf)
  262. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  263. local trace = m00 + m11 + m22
  264. if trace > 0 then
  265. local s = math.sqrt(1 + trace)
  266. local recip = 0.5/s
  267. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  268. else
  269. local i = 0
  270. if m11 > m00 then
  271. i = 1
  272. end
  273. if m22 > (i == 0 and m00 or m11) then
  274. i = 2
  275. end
  276. if i == 0 then
  277. local s = math.sqrt(m00-m11-m22+1)
  278. local recip = 0.5/s
  279. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  280. elseif i == 1 then
  281. local s = math.sqrt(m11-m22-m00+1)
  282. local recip = 0.5/s
  283. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  284. elseif i == 2 then
  285. local s = math.sqrt(m22-m00-m11+1)
  286. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  287. end
  288. end
  289. end
  290.  
  291. function RemoveOutlines(part)
  292. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  293. end
  294.  
  295. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  296. local xs, ys, zs = x + x, y + y, z + z
  297. local wx, wy, wz = w*xs, w*ys, w*zs
  298. local xx = x*xs
  299. local xy = x*ys
  300. local xz = x*zs
  301. local yy = y*ys
  302. local yz = y*zs
  303. local zz = z*zs
  304. 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))
  305. end
  306.  
  307. function QuaternionSlerp(a, b, t)
  308. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  309. local startInterp, finishInterp;
  310. if cosTheta >= 0.0001 then
  311. if (1 - cosTheta) > 0.0001 then
  312. local theta = math.acos(cosTheta)
  313. local invSinTheta = 1/math.sin(theta)
  314. startInterp = math.sin((1-t)*theta)*invSinTheta
  315. finishInterp = math.sin(t*theta)*invSinTheta
  316. else
  317. startInterp = 1-t
  318. finishInterp = t
  319. end
  320. else
  321. if (1+cosTheta) > 0.0001 then
  322. local theta = math.acos(-cosTheta)
  323. local invSinTheta = 1/math.sin(theta)
  324. startInterp = math.sin((t-1)*theta)*invSinTheta
  325. finishInterp = math.sin(t*theta)*invSinTheta
  326. else
  327. startInterp = t-1
  328. finishInterp = t
  329. end
  330. end
  331. 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
  332. end
  333.  
  334. function Clerp(a,b,t)
  335. local qa = {QuaternionFromCFrame(a)}
  336. local qb = {QuaternionFromCFrame(b)}
  337. local ax, ay, az = a.x, a.y, a.z
  338. local bx, by, bz = b.x, b.y, b.z
  339. local _t = 1-t
  340. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  341. end
  342.  
  343.  
  344.  
  345. function clerp(a,b,t)
  346. local qa = {QuaternionFromCFrame(a)}
  347. local qb = {QuaternionFromCFrame(b)}
  348. local ax, ay, az = a.x, a.y, a.z
  349. local bx, by, bz = b.x, b.y, b.z
  350. local _t = 1-t
  351. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  352. end
  353.  
  354. function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
  355. local type = type
  356. local rng = Instance.new("Part", char)
  357. rng.Anchored = true
  358. rng.BrickColor = color
  359. rng.CanCollide = false
  360. rng.FormFactor = 3
  361. rng.Name = "Ring"
  362. rng.Material = "Neon"
  363. rng.Size = Vector3.new(1, 1, 1)
  364. rng.Transparency = 0
  365. if typeoftrans == "In" then
  366. rng.Transparency = 1
  367. end
  368. rng.TopSurface = 0
  369. rng.BottomSurface = 0
  370. rng.CFrame = pos
  371. local rngm = Instance.new("SpecialMesh", rng)
  372. rngm.MeshType = "FileMesh"
  373. rngm.MeshId = "rbxassetid://20329976"
  374. rngm.Scale = scale
  375. local scaler2 = 1
  376. local scaler2b = 1
  377. if type == "Add" then
  378. scaler2 = 1*value
  379. scaler2b = 1*value2
  380. elseif type == "Divide" then
  381. scaler2 = 1/value
  382. scaler2b = 1/value2
  383. end
  384. local randomrot = math.random(1,2)
  385. coroutine.resume(coroutine.create(function()
  386. for i = 0,10/bonuspeed,0.1 do
  387. wait(0.01)
  388. if type == "Add" then
  389. scaler2 = scaler2 - 0.01*value/bonuspeed
  390. scaler2b = scaler2b - 0.01*value/bonuspeed
  391. elseif type == "Divide" then
  392. scaler2 = scaler2 - 0.01/value*bonuspeed
  393. scaler2b = scaler2b - 0.01/value*bonuspeed
  394. end
  395. if randomrot == 1 then
  396. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
  397. elseif randomrot == 2 then
  398. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
  399. end
  400. if typeoftrans == "Out" then
  401. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  402. elseif typeoftrans == "In" then
  403. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  404. end
  405. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
  406. end
  407. rng:Destroy()
  408. end))
  409. end
  410.  
  411. local Create = LoadLibrary("RbxUtility").Create
  412.  
  413. CFuncs = {
  414. ["Part"] = {
  415. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  416. local Part = Create("Part"){
  417. Parent = Parent,
  418. Reflectance = Reflectance,
  419. Transparency = Transparency,
  420. CanCollide = false,
  421. Locked = true,
  422. BrickColor = BrickColor.new(tostring(BColor)),
  423. Name = Name,
  424. Size = Size,
  425. Material = Material,
  426. }
  427. RemoveOutlines(Part)
  428. return Part
  429. end;
  430. };
  431.  
  432. ["Mesh"] = {
  433. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  434. local Msh = Create(Mesh){
  435. Parent = Part,
  436. Offset = OffSet,
  437. Scale = Scale,
  438. }
  439. if Mesh == "SpecialMesh" then
  440. Msh.MeshType = MeshType
  441. Msh.MeshId = MeshId
  442. end
  443. return Msh
  444. end;
  445. };
  446.  
  447. ["Mesh"] = {
  448. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  449. local Msh = Create(Mesh){
  450. Parent = Part,
  451. Offset = OffSet,
  452. Scale = Scale,
  453. }
  454. if Mesh == "SpecialMesh" then
  455. Msh.MeshType = MeshType
  456. Msh.MeshId = MeshId
  457. end
  458. return Msh
  459. end;
  460. };
  461.  
  462. ["Weld"] = {
  463. Create = function(Parent, Part0, Part1, C0, C1)
  464. local Weld = Create("Weld"){
  465. Parent = Parent,
  466. Part0 = Part0,
  467. Part1 = Part1,
  468. C0 = C0,
  469. C1 = C1,
  470. }
  471. return Weld
  472. end;
  473. };
  474.  
  475. ["Sound"] = {
  476. Create = function(id, par, vol, pit)
  477. coroutine.resume(coroutine.create(function()
  478. local S = Create("Sound"){
  479. Volume = vol,
  480. Name = "EffectSoundo",
  481. Pitch = pit or 1,
  482. SoundId = id,
  483. Parent = par or workspace,
  484. }
  485. wait()
  486. S:play()
  487. game:GetService("Debris"):AddItem(S, 10)
  488. end))
  489. end;
  490. };
  491.  
  492. ["LongSound"] = {
  493. Create = function(id, par, vol, pit)
  494. coroutine.resume(coroutine.create(function()
  495. local S = Create("Sound"){
  496. Volume = vol,
  497. Pitch = pit or 1,
  498. SoundId = id,
  499. Parent = par or workspace,
  500. }
  501. wait()
  502. S:play()
  503. game:GetService("Debris"):AddItem(S, 30)
  504. end))
  505. end;
  506. };
  507.  
  508. ["ParticleEmitter"] = {
  509. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  510. local fp = Create("ParticleEmitter"){
  511. Parent = Parent,
  512. Color = ColorSequence.new(Color1, Color2),
  513. LightEmission = LightEmission,
  514. Size = Size,
  515. Texture = Texture,
  516. Transparency = Transparency,
  517. ZOffset = ZOffset,
  518. Acceleration = Accel,
  519. Drag = Drag,
  520. LockedToPart = LockedToPart,
  521. VelocityInheritance = VelocityInheritance,
  522. EmissionDirection = EmissionDirection,
  523. Enabled = Enabled,
  524. Lifetime = LifeTime,
  525. Rate = Rate,
  526. Rotation = Rotation,
  527. RotSpeed = RotSpeed,
  528. Speed = Speed,
  529. VelocitySpread = VelocitySpread,
  530. }
  531. return fp
  532. end;
  533. };
  534.  
  535. CreateTemplate = {
  536.  
  537. };
  538. }
  539.  
  540. function sphere(bonuspeed,type,pos,scale,value,color)
  541. local type = type
  542. local rng = Instance.new("Part", workspace)
  543. rng.Anchored = true
  544. rng.BrickColor = color
  545. rng.CanCollide = false
  546. rng.FormFactor = 3
  547. rng.Name = "Ring"
  548. rng.Material = "Neon"
  549. rng.Size = Vector3.new(1, 1, 1)
  550. rng.Transparency = 0
  551. rng.TopSurface = 0
  552. rng.BottomSurface = 0
  553. rng.CFrame = pos
  554. local rngm = Instance.new("SpecialMesh", rng)
  555. rngm.MeshType = "Sphere"
  556. rngm.Scale = scale
  557. if rainbowmode == true then
  558. rng.Color = Color3.new(r/255,g/255,b/255)
  559. end
  560. local scaler2 = 1
  561. if type == "Add" then
  562. scaler2 = 1*value
  563. elseif type == "Divide" then
  564. scaler2 = 1/value
  565. end
  566. coroutine.resume(coroutine.create(function()
  567. for i = 0,10/bonuspeed,0.1 do
  568. wait(0.01)
  569. if rainbowmode == true then
  570. rng.Color = Color3.new(r/255,g/255,b/255)
  571. end
  572. if type == "Add" then
  573. scaler2 = scaler2 - 0.01*value/bonuspeed
  574. elseif type == "Divide" then
  575. scaler2 = scaler2 - 0.01/value*bonuspeed
  576. end
  577. if chaosmode == true then
  578. rng.BrickColor = BrickColor.random()
  579. end
  580. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  581. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  582. end
  583. rng:Destroy()
  584. end))
  585. end
  586.  
  587.  
  588.  
  589. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  590. local type = type
  591. local rng = Instance.new("Part", workspace)
  592. rng.Anchored = true
  593. rng.BrickColor = color
  594. rng.CanCollide = false
  595. rng.FormFactor = 3
  596. rng.Name = "Ring"
  597. rng.Material = "Neon"
  598. rng.Size = Vector3.new(1, 1, 1)
  599. rng.Transparency = 0
  600. rng.TopSurface = 0
  601. rng.BottomSurface = 0
  602. rng.CFrame = pos
  603. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  604. local rngm = Instance.new("SpecialMesh", rng)
  605. rngm.MeshType = "Sphere"
  606. rngm.Scale = vt(x1,y1,z1)
  607. if rainbowmode == true then
  608. rng.Color = Color3.new(r/255,g/255,b/255)
  609. end
  610. local scaler2 = 1
  611. local speeder = FastSpeed
  612. if type == "Add" then
  613. scaler2 = 1*value
  614. elseif type == "Divide" then
  615. scaler2 = 1/value
  616. end
  617. coroutine.resume(coroutine.create(function()
  618. for i = 0,10/bonuspeed,0.1 do
  619. wait(0.01)
  620. if rainbowmode == true then
  621. rng.Color = Color3.new(r/255,g/255,b/255)
  622. end
  623. if type == "Add" then
  624. scaler2 = scaler2 - 0.01*value/bonuspeed
  625. elseif type == "Divide" then
  626. scaler2 = scaler2 - 0.01/value*bonuspeed
  627. end
  628. if chaosmode == true then
  629. rng.BrickColor = BrickColor.random()
  630. end
  631. speeder = speeder - 0.01*FastSpeed*bonuspeed
  632. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  633. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  634. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  635. end
  636. rng:Destroy()
  637. end))
  638. end
  639.  
  640. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  641. if hit.Parent == nil then
  642. return
  643. end
  644. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  645. for _, v in pairs(hit.Parent:children()) do
  646. if v:IsA("Humanoid") then
  647. h = v
  648. end
  649. end
  650. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  651. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  652. return
  653. end
  654. local c = Create("ObjectValue")({
  655. Name = "creator",
  656. Value = game:service("Players").LocalPlayer,
  657. Parent = h
  658. })
  659. game:GetService("Debris"):AddItem(c, 0.5)
  660. if HitSound ~= nil and HitPitch ~= nil then
  661. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  662. end
  663. local Damage = math.random(minim, maxim)
  664. local blocked = false
  665. local block = hit.Parent:findFirstChild("Block")
  666. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  667. blocked = true
  668. block.Value = block.Value - 1
  669. print(block.Value)
  670. end
  671. if blocked == false then
  672. HitHealth = h.Health
  673. h.Health = h.Health - Damage
  674. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  675. print("gained kill")
  676. end
  677. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  678. else
  679. h.Health = h.Health - Damage / 2
  680. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  681. end
  682. if Type == "Knockdown" then
  683. local hum = hit.Parent.Humanoid
  684. hum.PlatformStand = true
  685. coroutine.resume(coroutine.create(function(HHumanoid)
  686. swait(1)
  687. HHumanoid.PlatformStand = false
  688. end), hum)
  689. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  690. local bodvol = Create("BodyVelocity")({
  691. velocity = angle * knockback,
  692. P = 5000,
  693. maxForce = Vector3.new(8000, 8000, 8000),
  694. Parent = hit
  695. })
  696. local rl = Create("BodyAngularVelocity")({
  697. P = 3000,
  698. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  699. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  700. Parent = hit
  701. })
  702. game:GetService("Debris"):AddItem(bodvol, 0.5)
  703. game:GetService("Debris"):AddItem(rl, 0.5)
  704. elseif Type == "Normal" then
  705. local vp = Create("BodyVelocity")({
  706. P = 500,
  707. maxForce = Vector3.new(math.huge, 0, math.huge),
  708. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  709. })
  710. if knockback > 0 then
  711. vp.Parent = hit.Parent.Head
  712. end
  713. game:GetService("Debris"):AddItem(vp, 0.5)
  714. elseif Type == "Up" then
  715. local bodyVelocity = Create("BodyVelocity")({
  716. velocity = Vector3.new(0, 20, 0),
  717. P = 5000,
  718. maxForce = Vector3.new(8000, 8000, 8000),
  719. Parent = hit
  720. })
  721. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  722. local bodyVelocity = Create("BodyVelocity")({
  723. velocity = Vector3.new(0, 20, 0),
  724. P = 5000,
  725. maxForce = Vector3.new(8000, 8000, 8000),
  726. Parent = hit
  727. })
  728. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  729. elseif Type == "Leech" then
  730. local hum = hit.Parent.Humanoid
  731. if hum ~= nil then
  732. for i = 0, 2 do
  733. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  734. end
  735. Humanoid.Health = Humanoid.Health + 10
  736. end
  737. elseif Type == "UpKnock" then
  738. local hum = hit.Parent.Humanoid
  739. hum.PlatformStand = true
  740. if hum ~= nil then
  741. hitr = true
  742. end
  743. coroutine.resume(coroutine.create(function(HHumanoid)
  744. swait(5)
  745. HHumanoid.PlatformStand = false
  746. hitr = false
  747. end), hum)
  748. local bodyVelocity = Create("BodyVelocity")({
  749. velocity = Vector3.new(0, 20, 0),
  750. P = 5000,
  751. maxForce = Vector3.new(8000, 8000, 8000),
  752. Parent = hit
  753. })
  754. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  755. local bodyVelocity = Create("BodyVelocity")({
  756. velocity = Vector3.new(0, 20, 0),
  757. P = 5000,
  758. maxForce = Vector3.new(8000, 8000, 8000),
  759. Parent = hit
  760. })
  761. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  762. elseif Type == "Snare" then
  763. local bp = Create("BodyPosition")({
  764. P = 2000,
  765. D = 100,
  766. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  767. position = hit.Parent.Torso.Position,
  768. Parent = hit.Parent.Torso
  769. })
  770. game:GetService("Debris"):AddItem(bp, 1)
  771. elseif Type == "Slashnare" then
  772. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  773. for i = 1, math.random(4, 5) do
  774. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  775. end
  776. local bp = Create("BodyPosition")({
  777. P = 2000,
  778. D = 100,
  779. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  780. position = hit.Parent.Torso.Position,
  781. Parent = hit.Parent.Torso
  782. })
  783. game:GetService("Debris"):AddItem(bp, 1)
  784. elseif Type == "Spike" then
  785. CreateBigIceSword(hit.Parent.Torso.CFrame)
  786. local bp = Create("BodyPosition")({
  787. P = 2000,
  788. D = 100,
  789. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  790. position = hit.Parent.Torso.Position,
  791. Parent = hit.Parent.Torso
  792. })
  793. game:GetService("Debris"):AddItem(bp, 1)
  794. elseif Type == "Freeze" then
  795. local BodPos = Create("BodyPosition")({
  796. P = 50000,
  797. D = 1000,
  798. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  799. position = hit.Parent.Torso.Position,
  800. Parent = hit.Parent.Torso
  801. })
  802. local BodGy = Create("BodyGyro")({
  803. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  804. P = 20000,
  805. Parent = hit.Parent.Torso,
  806. cframe = hit.Parent.Torso.CFrame
  807. })
  808. hit.Parent.Torso.Anchored = true
  809. coroutine.resume(coroutine.create(function(Part)
  810. swait(1.5)
  811. Part.Anchored = false
  812. end), hit.Parent.Torso)
  813. game:GetService("Debris"):AddItem(BodPos, 3)
  814. game:GetService("Debris"):AddItem(BodGy, 3)
  815. end
  816. local debounce = Create("BoolValue")({
  817. Name = "DebounceHit",
  818. Parent = hit.Parent,
  819. Value = true
  820. })
  821. game:GetService("Debris"):AddItem(debounce, Delay)
  822. c = Instance.new("ObjectValue")
  823. c.Name = "creator"
  824. c.Value = Player
  825. c.Parent = h
  826. game:GetService("Debris"):AddItem(c, 0.5)
  827. end
  828. end
  829.  
  830.  
  831. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  832. for _, c in pairs(workspace:children()) do
  833. local hum = c:findFirstChildOfClass("Humanoid")
  834. if hum ~= nil then
  835. local head = c:findFirstChild("Head")
  836. if head ~= nil then
  837. local targ = head.Position - Part.Position
  838. local mag = targ.magnitude
  839. if magni >= mag and c.Name ~= Player.Name then
  840. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  841. end
  842. end
  843. end
  844. end
  845. end
  846.  
  847.  
  848. function CreateSound(Id,Vol,prnt)
  849. local sund = Instance.new("Sound", prnt)
  850. sund.SoundId = "rbxassetid://".. Id
  851. sund.Volume = Vol
  852. sund:Play()
  853. if Id == 3333907347 then
  854. wait(1)
  855. sund:Destroy()
  856. elseif Id == 1621591319 then
  857. sund.TimePosition = 5
  858. wait(1)
  859. sund:Destroy()
  860. end
  861. end
  862.  
  863. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  864. local p = Instance.new("Part")
  865. p.TopSurface = 0
  866. p.BottomSurface = 0
  867. p.Parent = parent
  868. p.Size = Vector3.new(0.1,0.1,0.1)
  869. p.Transparency = transparency
  870. p.Reflectance = reflectance
  871. p.CanCollide = false
  872. p.Locked = true
  873. p.BrickColor = brickcolor
  874. p.Material = material
  875. return p
  876. end
  877.  
  878. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  879. local Part = Create("Part")({
  880. Parent = Parent,
  881. Reflectance = Reflectance,
  882. Transparency = Transparency,
  883. CanCollide = false,
  884. Locked = true,
  885. BrickColor = BrickColor.new(tostring(BColor)),
  886. Name = Name,
  887. Size = Size,
  888. Material = Material
  889. })
  890. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  891. RemoveOutlines(Part)
  892. return Part
  893. end
  894.  
  895.  
  896. function createweld(prnt,nm,p0,p1,co,c1)
  897. local wed = Instance.new("Weld", prnt)
  898. wed.Name = nm
  899. wed.Part0 = p0
  900. wed.Part1 = p1
  901. wed.C0 = co
  902. wed.C1 = c1
  903. end
  904.  
  905. function ShowDamage(Pos, Text, Time, Color)
  906. local Rate = 0.03333333333333333
  907. local Pos = Pos or Vector3.new(0, 0, 0)
  908. local Text = Text or ""
  909. local Time = Time or 2
  910. local Color = Color or Color3.new(1, 0, 1)
  911. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  912. EffectPart.Anchored = true
  913. local BillboardGui = Create("BillboardGui")({
  914. Size = UDim2.new(3, 0, 3, 0),
  915. Adornee = EffectPart,
  916. Parent = EffectPart
  917. })
  918. local TextLabel = Create("TextLabel")({
  919. BackgroundTransparency = 1,
  920. Size = UDim2.new(1, 0, 1, 0),
  921. Text = Text,
  922. TextColor3 = Color,
  923. TextScaled = true,
  924. Font = Enum.Font.ArialBold,
  925. Parent = BillboardGui
  926. })
  927. game.Debris:AddItem(EffectPart, Time + 0.1)
  928. EffectPart.Parent = game:GetService("Workspace")
  929. delay(0, function()
  930. local Frames = Time / Rate
  931. for Frame = 1, Frames do
  932. wait(Rate)
  933. local Percent = Frame / Frames
  934. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  935. TextLabel.TextTransparency = Percent
  936. end
  937. if EffectPart and EffectPart.Parent then
  938. EffectPart:Destroy()
  939. end
  940. end)
  941. end
  942.  
  943. function CreteBodyVelocity(Block,type,amt,velocity)
  944. local Direction = type
  945. local velo = velocity / sine
  946.  
  947. if Direction == "Up" then
  948. for i = 1,amt do
  949. wait(velo)
  950. Block.CFrame = Block.CFrame * cf(0,0,1)
  951. end
  952. end
  953.  
  954. if Direction == "Down" then
  955. for i = 1,amt do
  956. wait(velo)
  957. Block.CFrame = Block.CFrame * cf(0,0,-1)
  958. end
  959. end
  960.  
  961. if Direction == "Left" then
  962. for i = 1,amt do
  963. wait(velo)
  964. Block.CFrame = Block.CFrame * cf(0,1,0)
  965. end
  966. end
  967.  
  968. if Direction == "Right" then
  969. for i = 1,amt do
  970. wait(velo)
  971. Block.CFrame = Block.CFrame * cf(0,-1,0)
  972. end
  973. end
  974.  
  975. if Direction == "Front" then
  976. for i = 1,amt do
  977. wait(velo)
  978. Block.CFrame = Block.CFrame * cf(1,0,0)
  979. end
  980. end
  981.  
  982. if Direction == "Back" then
  983. for i = 1,amt do
  984. wait(velo)
  985. Block.CFrame = Block.CFrame * cf(-1,0,0)
  986. end
  987. end
  988. end
  989.  
  990.  
  991. --StopSing
  992.  
  993.  
  994. o1 = Instance.new("Model")
  995. o2 = Instance.new("Part")
  996. o3 = Instance.new("Part")
  997. o4 = Instance.new("Decal")
  998. o5 = Instance.new("Part")
  999. o6 = Instance.new("SurfaceGui")
  1000. o7 = Instance.new("TextLabel")
  1001. o8 = Instance.new("Weld")
  1002. o9 = Instance.new("CFrameValue")
  1003. o10 = Instance.new("Weld")
  1004. o11 = Instance.new("CFrameValue")
  1005. o12 = Instance.new("Part")
  1006. o13 = Instance.new("Weld")
  1007. o14 = Instance.new("CFrameValue")
  1008. o15 = Instance.new("Part")
  1009. o16 = Instance.new("Weld")
  1010. o17 = Instance.new("Weld")
  1011. o18 = Instance.new("CFrameValue")
  1012. o1.Name = "Stop sing"
  1013. o1.Parent = char
  1014. o2.Name = "Pal"
  1015. o2.Parent = o1
  1016. o2.Position = Vector3.new(-41.8863831, 7.09160089, -29.8337212)
  1017. o2.Rotation = Vector3.new(-6.71000004, 42.3199997, -175.259995)
  1018. o2.Shape = Enum.PartType.Cylinder
  1019. o2.Size = Vector3.new(4.28796577, 0.212915897, 0.212915897)
  1020. o2.CFrame = CFrame.new(-41.8863831, 7.09160089, -29.8337212, -0.73683244, 0.0611351281, 0.673305571, -0.00370033155, -0.996252894, 0.0864087939, 0.676065266, 0.0611773506, 0.734297693)
  1021. o2.BottomSurface = Enum.SurfaceType.Smooth
  1022. o2.TopSurface = Enum.SurfaceType.Smooth
  1023. o2.Position = Vector3.new(-41.8863831, 7.09160089, -29.8337212)
  1024. o2.Orientation = Vector3.new(-4.96000004, 42.5200005, -179.789993)
  1025. o3.Name = "Board"
  1026. o3.Parent = o1
  1027. o3.Position = Vector3.new(-40.954464, 7.20388651, -30.7010422)
  1028. o3.Rotation = Vector3.new(-6.71000004, 42.3199997, -85.2600021)
  1029. o3.Shape = Enum.PartType.Cylinder
  1030. o3.Size = Vector3.new(0.0768114701, 2.13387561, 2.13387561)
  1031. o3.CFrame = CFrame.new(-40.954464, 7.20388651, -30.7010422, 0.0611351281, 0.73683244, 0.673305571, -0.996252894, 0.00370033155, 0.0864087939, 0.0611773506, -0.676065266, 0.734297693)
  1032. o3.BottomSurface = Enum.SurfaceType.Smooth
  1033. o3.TopSurface = Enum.SurfaceType.Smooth
  1034. o3.Position = Vector3.new(-40.954464, 7.20388651, -30.7010422)
  1035. o3.Orientation = Vector3.new(-4.96000004, 42.5200005, -89.7900009)
  1036. o4.Parent = o3
  1037. o4.Texture = "http://www.roblox.com/asset/?id=5837725"
  1038. o4.Face = Enum.NormalId.Left
  1039. o5.Name = "Stop"
  1040. o5.Parent = o3
  1041. o5.Transparency = 1
  1042. o5.Position = Vector3.new(-40.9097862, 7.20411825, -30.742033)
  1043. o5.Rotation = Vector3.new(86.4899979, 3.5, -132.419998)
  1044. o5.FormFactor = Enum.FormFactor.Custom
  1045. o5.Size = Vector3.new(2.05302143, 2.13185382, 0.134756923)
  1046. o5.CFrame = CFrame.new(-40.9097862, 7.20411825, -30.742033, -0.673305571, 0.73683244, 0.0611351281, -0.0864087939, 0.00370033155, -0.996252894, -0.734297693, -0.676065266, 0.0611773506)
  1047. o5.Position = Vector3.new(-40.9097862, 7.20411825, -30.742033)
  1048. o5.Orientation = Vector3.new(85.0400009, 44.9799995, -87.5500031)
  1049. o6.Parent = o5
  1050. o6.CanvasSize = Vector2.new(200, 100)
  1051. o7.Name = "Welcome"
  1052. o7.Parent = o6
  1053. o7.Size = UDim2.new(1,0,1,0)
  1054. o7.Text = "Stop Skids"
  1055. o7.BackgroundColor3 = Color3.new(1, 1, 1)
  1056. o7.BackgroundTransparency = 1
  1057. o7.Font = Enum.Font.SourceSansBold
  1058. o7.FontSize = Enum.FontSize.Size60
  1059. o7.TextColor3 = Color3.new(1, 1, 1)
  1060. o7.TextStrokeTransparency = 0
  1061. o8.Name = "qCFrameWeldThingy"
  1062. o8.Parent = o5
  1063. o8.C1 = CFrame.new(0.000297546387, -1.33408213, 0.107959747, 0, 0, -1, -1, 0, 0, 0, 1, 0)
  1064. o8.Part0 = o2
  1065. o8.Part1 = o5
  1066. o9.Name = "qRelativeCFrameWeldValue"
  1067. o9.Parent = o5
  1068. o9.Value = CFrame.new(0.000297546387, -1.33408213, 0.107959747, 0, 0, -1, -1, 0, 0, 0, 1, 0)
  1069. o10.Name = "qCFrameWeldThingy"
  1070. o10.Parent = o3
  1071. o10.C1 = CFrame.new(0.107952118, -1.27345085, -0.000297546387, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  1072. o10.Part0 = o2
  1073. o10.Part1 = o3
  1074. o11.Name = "qRelativeCFrameWeldValue"
  1075. o11.Parent = o3
  1076. o11.Value = CFrame.new(0.107952118, -1.27345085, -0.000297546387, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  1077. o12.Name = "HitBox"
  1078. o12.Parent = o1
  1079. o12.Transparency = 1
  1080. o12.Position = Vector3.new(-40.9544678, 7.20387888, -30.7010384)
  1081. o12.Rotation = Vector3.new(-6.71000004, 42.3199997, -85.2600021)
  1082. o12.CanCollide = false
  1083. o12.Size = Vector3.new(0.420441568, 2.13387561, 2.13387561)
  1084. o12.CFrame = CFrame.new(-40.9544678, 7.20387888, -30.7010384, 0.0611351281, 0.73683244, 0.673305571, -0.996252894, 0.00370033155, 0.0864087939, 0.0611773506, -0.676065266, 0.734297693)
  1085. o12.BottomSurface = Enum.SurfaceType.Smooth
  1086. o12.TopSurface = Enum.SurfaceType.Smooth
  1087. o12.Position = Vector3.new(-40.9544678, 7.20387888, -30.7010384)
  1088. o12.Orientation = Vector3.new(-4.96000004, 42.5200005, -89.7900009)
  1089. o13.Name = "qCFrameWeldThingy"
  1090. o13.Parent = o12
  1091. o13.C1 = CFrame.new(0.107944489, -1.27344513, -0.000297546387, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  1092. o13.Part0 = o2
  1093. o13.Part1 = o12
  1094. o14.Name = "qRelativeCFrameWeldValue"
  1095. o14.Parent = o12
  1096. o14.Value = CFrame.new(0.107944489, -1.27344513, -0.000297546387, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  1097. o15.Name = "Handlu"
  1098. o15.Parent = o1
  1099. o15.Transparency = 1
  1100. o15.Position = Vector3.new(-42.8535767, 6.1518054, -28.9348221)
  1101. o15.Rotation = Vector3.new(0.310000002, -47.4599991, -174.809998)
  1102. o15.CanCollide = false
  1103. o15.Size = Vector3.new(1, 2, 1)
  1104. o15.CFrame = CFrame.new(-42.8535767, 6.1518054, -28.9348221, -0.673305571, 0.0611351281, -0.73683244, -0.0864087939, -0.996252894, -0.00370033155, -0.734297693, 0.0611773506, 0.676065266)
  1105. o15.BottomSurface = Enum.SurfaceType.Smooth
  1106. o15.TopSurface = Enum.SurfaceType.Smooth
  1107. o15.Position = Vector3.new(-42.8535767, 6.1518054, -28.9348221)
  1108. o15.Orientation = Vector3.new(0.209999993, -47.4599991, -175.039993)
  1109. o16.Name = "LAWeld"
  1110. o16.Parent = o15
  1111. o16.Part0 = o15
  1112. o16.Part1 = LA
  1113. o17.Name = "qCFrameWeldThingy"
  1114. o17.Parent = o15
  1115. o17.C1 = CFrame.new(-0.0723648071, -0.932136536, -1.32385194, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1116. o17.Part0 = o2
  1117. o17.Part1 = o15
  1118. o18.Name = "qRelativeCFrameWeldValue"
  1119. o18.Parent = o15
  1120. o18.Value = CFrame.new(-0.0723648071, -0.932136536, -1.32385194, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1121.  
  1122. --Attacks
  1123.  
  1124. --AttFunctions
  1125.  
  1126. local keyhold = false
  1127.  
  1128. function Attack1()
  1129. attack = true
  1130. candamage = true
  1131. keyhold = true
  1132. while keyhold == true do
  1133. for i = 1,15 do
  1134. wait(0.001)
  1135. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1136. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  1138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1139. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1140. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(150),math.rad(20),math.rad(0)),.1)
  1141. end
  1142. CreateSound(3333907347,10,o12)
  1143. for i = 1,50 do
  1144. swait(0.001)
  1145.  
  1146. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1147. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(50),math.rad(0),math.rad(-30)),.1)
  1149. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1150. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1151. LW.C0=clerp(LW.C0,cf(-1.5,0.6 ,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  1152.  
  1153. end
  1154.  
  1155.  
  1156. o12.Touched:Connect(function(hit)
  1157. candamage = false
  1158. if (hit.Parent:IsA("Model")) and candamage == true then
  1159. if hit.Name == "Baseplate" then
  1160. print("Not This Bay!!")
  1161. else
  1162. hit.Parent.Humanoid.Health = 0
  1163. hit:Destroy()
  1164. end
  1165. end
  1166. end)
  1167. end
  1168. end
  1169.  
  1170. function DestroyerBall()
  1171. attack = true
  1172. local tagged = nil
  1173. hum.WalkSpeed = 0
  1174. for i = 1,30 do
  1175. wait(0.01)
  1176. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1177. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1178. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1179. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1180. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(190),math.rad(0),math.rad(0)),.1)
  1181. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1182. sphere2(8,"Add",RA.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Really red"),Color3.new(0,1,0))
  1183.  
  1184. end
  1185.  
  1186. for i = 1,30 do
  1187. wait(0.01)
  1188. RH.C0=clerp(RH.C0,cf(1,0,0)*angles(math.rad(30),math.rad(90),math.rad(0)),.1)
  1189. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  1190. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),-1.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.1)
  1191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  1192. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,-1)*angles(math.rad(50),math.rad(0),math.rad(0)),.1)
  1193. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
  1194. sphere2(8,"Add",RA.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Really red"),Color3.new(0,1,0))
  1195.  
  1196. end
  1197.  
  1198. wait(1)
  1199.  
  1200. local p = Instance.new("Part",root)
  1201. p.Anchored = true
  1202. p.CanCollide = false
  1203. p.BrickColor = BrickColor.new("Really red")
  1204. p.Material = Enum.Material.Neon
  1205. p.Size = Vector3.new(1,1,1)
  1206. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  1207. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  1208. local m = Instance.new("SpecialMesh",p)
  1209. m.MeshType = "Cylinder"
  1210. m.Scale = Vector3.new(2000,2,2)
  1211. local targ = Instance.new("Part",root)
  1212. targ.Transparency = 1
  1213. targ.CanCollide = false
  1214. targ.Size = Vector3.new(1,1,1)
  1215. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  1216. CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1)
  1217. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  1218.  
  1219. for i = 1,15 do
  1220. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  1221. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, BrickColor.new("Really red"))
  1222. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, BrickColor.new("Really red"), 0)
  1223. m.Scale = m.Scale+Vector3.new(0,1,1)
  1224. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  1225. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  1226. targ.Touched:Connect(function(tch)
  1227. if (tch.Parent:IsA("Model")) then
  1228. if tch.Parent.Name == plr.Name or tch.Parent.Name == "Workspace" then
  1229. print("bai")
  1230. else
  1231. tagged = tch.Parent
  1232. tagged.Humanoid:TakeDamage(1)
  1233. while tagged.Humanoid.Health == 0 do
  1234. wait(0.01)
  1235. tagged.Head:Destroy()
  1236. end
  1237. end
  1238. end
  1239. end)
  1240. wait(0.01)
  1241. end
  1242. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Really red"), 0)
  1243. while keyhold == true do
  1244. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  1245. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, BrickColor.new("Really red"), 0)
  1246. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, BrickColor.new("Really red"))
  1247. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  1248. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  1249. targ.Touched:Connect(function(tch)
  1250. if (tch.Parent:IsA("Model")) then
  1251. if tch.Parent.Name == plr.Name or tch.Parent.Name == "Workspace" then
  1252. print("bai")
  1253. else
  1254. tagged = tch.Parent
  1255. tagged.Humanoid:TakeDamage(1)
  1256. while tagged.Humanoid.Health == 0 do
  1257. wait(0.01)
  1258. tagged.Head:Destroy()
  1259. end
  1260. end
  1261. end
  1262. end)
  1263. wait(0.01)
  1264. end
  1265. for i =1,15 do
  1266. m.Scale = m.Scale-Vector3.new(1,1,1)
  1267. p.Transparency = i / 15
  1268. wait(0.01)
  1269. end
  1270. p:Destroy()
  1271. hum.WalkSpeed = 50
  1272. attack = false
  1273. end
  1274.  
  1275. local targetted = nil
  1276.  
  1277. function BanPan()
  1278. if mouse.Target == nil then
  1279. print("Mouse's Target Is Nil")
  1280. elseif mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1281. targetted = mouse.Target.Parent
  1282.  
  1283. end
  1284. if targetted ~= nil then
  1285. attack = true
  1286. if targetted.Torso == nil then
  1287. root.CFrame = targetted.HumanoidRootPart.CFrame * cf(0,0.5,4)
  1288. targetted.HumanoidRootPart.Orientation = root.Orientation
  1289. targetted.HumanoidRootPart.Anchored = true
  1290. else
  1291. root.CFrame = targetted.Torso.CFrame * cf(0,0.5,4)
  1292. targetted.Torso.Orientation = root.Orientation
  1293. targetted.Torso.Anchored = true
  1294. end
  1295. hum.WalkSpeed = 0
  1296. CreateSound(245064504,10,o12)
  1297. chatfunc("Nope..",BrickColor.new("Brown"),"SourceSans")
  1298. for i = 1,40 do
  1299. wait(0.01)
  1300. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1301. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1302. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
  1303. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1304. RW.C0=clerp(RW.C0,cf(1,0.5 ,0)*angles(math.rad(90),math.rad(0),math.rad(-35)),.1)
  1305. LW.C0=clerp(LW.C0,cf(-0.5,0.5 ,0)*angles(math.rad(90),math.rad(70),math.rad(20)),.1)
  1306.  
  1307. end
  1308.  
  1309.  
  1310. CreateSound(3431749479,10,o12)
  1311.  
  1312. for i = 1,20 do
  1313. wait(0.01)
  1314. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1315. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1316. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1318. RW.C0=clerp(RW.C0,cf(1,0.5 ,0)*angles(math.rad(90),math.rad(0),math.rad(-35)),.1)
  1319. LW.C0=clerp(LW.C0,cf(-0.5,0.5 ,0)*angles(math.rad(90),math.rad(70),math.rad(20)),.1)
  1320. end
  1321. attack = false
  1322. targetted.Humanoid.Health = 0
  1323. targetted.Head:Destroy()
  1324. hum.WalkSpeed = 50
  1325. else
  1326. print("Please Select A Target First..")
  1327. end
  1328. end
  1329.  
  1330. function NoU()
  1331. attack = true
  1332. keyhold = false
  1333. CreateSound(1543318456,10,hed)
  1334. for i = 1,10 do
  1335. wait(0.01)
  1336. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1337. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1340. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(120),math.rad(0),math.rad(-20)),.1)
  1341. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  1342.  
  1343. end
  1344. for i = 1,10 do
  1345. wait(0.01)
  1346. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1347. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1348. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1349. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1350. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(120),math.rad(0),math.rad(20)),.1)
  1351. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  1352.  
  1353. end
  1354. for i = 1,10 do
  1355. wait(0.01)
  1356. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1357. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1358. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1360. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(120),math.rad(0),math.rad(-20)),.1)
  1361. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  1362.  
  1363. end
  1364. for i = 1,10 do
  1365. wait(0.01)
  1366. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1367. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1370. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.1)
  1371. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  1372.  
  1373. end
  1374. for i = 1,10 do
  1375. wait(0.01)
  1376. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1377. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1378. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1379. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1380. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,-0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.1)
  1381. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  1382.  
  1383. end
  1384.  
  1385. attack = false
  1386. end
  1387.  
  1388. --key
  1389. canattack = true
  1390. mouse.Button1Down:Connect(function()
  1391. Attack1()
  1392. attack = false
  1393.  
  1394. end)
  1395. mouse.Button1Up:Connect(function()
  1396. keyhold = false
  1397.  
  1398. end)
  1399.  
  1400. mouse.KeyDown:Connect(function(Key)
  1401. if Key == "q" then
  1402. if canattack == true then
  1403. keyhold = true
  1404. canattack = false
  1405. DestroyerBall()
  1406. end
  1407. elseif Key == "e" then
  1408. if canattack == true then
  1409. canattack = false
  1410. BanPan()
  1411. wait(2)
  1412. canattack = true
  1413. candamage = true
  1414. end
  1415. elseif Key == "t" then
  1416. if canattack == true then
  1417. canattack = false
  1418. NoU()
  1419. wait(1)
  1420. canattack = true
  1421. end
  1422. end
  1423. end)
  1424.  
  1425. mouse.KeyUp:Connect(function(Key)
  1426. if Key == "q" then
  1427.  
  1428. canattack = true
  1429. keyhold = false
  1430. end
  1431. end)
  1432.  
  1433.  
  1434.  
  1435. --Animations
  1436.  
  1437.  
  1438.  
  1439. local equipped = false
  1440. local idle = 0
  1441. local change = 1
  1442. local val = 0
  1443. local toim = 0
  1444. local idleanim = 0.4
  1445. ANIMATE.Parent = nil
  1446. hum.WalkSpeed = 50
  1447. hum.JumpPower = 70
  1448. hum.MaxHealth = "inf"
  1449. hum.Health = "inf"
  1450. hum.Animator.Parent = nil
  1451.  
  1452.  
  1453.  
  1454. while true do
  1455. wait(0.001)
  1456. sine = sine + change
  1457. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1458. local velderp = root.Velocity.y
  1459. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1460. if equipped == true or equipped == false then
  1461. if attack == false then
  1462. idle = idle + 1
  1463. else
  1464. idle = 0
  1465. end
  1466. if 1 < root.Velocity.y and hitfloor == nil and attack == false then
  1467. Anim = "Jump"
  1468. change = 1
  1469. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1470. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1471. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 3 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1472. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1473. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1474. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1475.  
  1476. elseif -1 > root.Velocity.y and hitfloor == nil and attack == false then
  1477. Anim = "FaLL"
  1478. change = 1
  1479. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
  1480. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  1481. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  1482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1483. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1484. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1485.  
  1486. elseif torvel < 1 and hitfloor ~= nil and attack == false then
  1487. Anim = "Idle"
  1488. change = 1
  1489. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 40 * math.cos(sine / 20)),math.rad(90),math.rad(0)),.1)
  1490. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 40 * math.cos(sine / 20)),math.rad(-90),math.rad(0)),.1)
  1491. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0 + 30 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1492. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 40 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1493. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0 - 40 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1494. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(20 - 40 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1495.  
  1496. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil and attack == false then
  1497. Anim = "Walk"
  1498. change = 2.6
  1499.  
  1500. elseif torvel >= 25 and hitfloor ~= nil and attack == false then
  1501. Anim = "Sprint"
  1502. change = 3
  1503. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 150 * math.cos(sine / 20)),math.rad(90),math.rad(0)),.1)
  1504. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 - 150 * math.cos(sine / 20)),math.rad(-90),math.rad(0)),.1)
  1505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.1 * math.cos(sine / 32),0)*angles(math.rad(-30),math.rad(0 + 8 * math.cos(sine / 20)),math.rad(0 + 8 * math.cos(sine / 20))),.1)
  1506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1507. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0 - 150 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1508. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0 + 150 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1509.  
  1510. end
  1511. end
  1512.  
  1513.  
  1514.  
  1515. if 0 < #Effects then
  1516. for e = 1, #Effects do
  1517. if Effects[e] ~= nil then
  1518. local Thing = Effects[e]
  1519. if Thing ~= nil then
  1520. local Part = Thing[1]
  1521. local Mode = Thing[2]
  1522. local DeLAy = Thing[3]
  1523. local IncX = Thing[4]
  1524. local IncY = Thing[5]
  1525. local IncZ = Thing[6]
  1526. if 1 >= Thing[1].TRAnsparency then
  1527. if Thing[2] == "Block1" then
  1528. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50))
  1529. local Mesh = Thing[1].Mesh
  1530. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1531. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1532. elseif Thing[2] == "Block2" then
  1533. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1534. local Mesh = Thing[7]
  1535. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1536. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1537. elseif Thing[2] == "Block3" then
  1538. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50)) + Vector3.new(0, 0.15, 0)
  1539. local Mesh = Thing[7]
  1540. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1541. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1542. elseif Thing[2] == "Cylinder" then
  1543. local Mesh = Thing[1].Mesh
  1544. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1545. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1546. elseif Thing[2] == "Blood" then
  1547. local Mesh = Thing[7]
  1548. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1549. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1550. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1551. elseif Thing[2] == "Elec" then
  1552. local Mesh = Thing[1].Mesh
  1553. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1554. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1555. elseif Thing[2] == "Disappear" then
  1556. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1557. elseif Thing[2] == "Shatter" then
  1558. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1559. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1560. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1561. Thing[6] = Thing[6] + Thing[5]
  1562. end
  1563. else
  1564. Part.Parent = nil
  1565. table.remove(Effects, e)
  1566. end
  1567. end
  1568. end
  1569. end
  1570. end
  1571. end
Add Comment
Please, Sign In to add comment