Advertisement
SCP-682-A

FE SANS

Jan 12th, 2019
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.27 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Sans Curse (A Curse of Light) --
  3. -- Custom Arcane Adventures Magic --
  4. -- Wielder: Everybody (Released) --
  5. -- Why the fuck did I make this --
  6. -- I don't even LIKE undertale --
  7. -- what the fuck --
  8.  
  9. -- Discord: Nebula the Zorua#6969
  10. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  11.  
  12. -- You can change the Magic Circle n stuff down under Customization, at MagicVariant --
  13.  
  14.  
  15. --// Shortcut Variables \\--
  16. print("Original script made by someone else, i just edited it with actual Sonic sounds. -- Velo")
  17. wait()
  18. thing = 0
  19. LoudVolume = false
  20. Submerged = false
  21. Music = true
  22. script.Name = "SANIIIIC"
  23. Player = game.Players.LocalPlayer
  24. c = game.Players.LocalPlayer.Character
  25. Head = c.Head
  26. Humanoid = c.Humanoid
  27. anim = c.Humanoid.Animator
  28. rage = false
  29. p = game.Players.LocalPlayer
  30. Music = false
  31. anim = Humanoid.Animator
  32. local Effects = {}
  33. attack = false
  34. local attacking = false
  35. vt = Vector3.new
  36. bc = BrickColor.new
  37. br = BrickColor.random
  38. it = Instance.new
  39. cf = CFrame.new
  40. euler = CFrame.fromEulerAnglesXYZ
  41. angles = CFrame.Angles
  42. matr = math.random
  43. mouse = Player:GetMouse()
  44.  
  45. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  46. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  47. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  48. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  49. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  50. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  51. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  52. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  53. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  54. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  55. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  56. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  57. RS = c.Torso:FindFirstChild("Right Shoulder")
  58. LS = c.Torso:FindFirstChild("Left Shoulder")
  59. RH = c.Torso:FindFirstChild("Right Hip")
  60. LH = c.Torso:FindFirstChild("Left Hip")
  61. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  62. N = c.Torso:FindFirstChild("Neck")
  63. cf = CFrame.new
  64. ang = CFrame.Angles
  65. rd = math.rad
  66. rd2 = math.random
  67.  
  68. --[[mainShirt = c.Shirt
  69. mainPants = c.Pants
  70. mainBColors = c["Body Colors"]
  71. mainShirt.ShirtTemplate = "rbxassetid://769869277"
  72. mainPants.PantsTemplate = "rbxassetid://805486769"
  73. mainBColors.HeadColor = BrickColor.new("Pastel brown")
  74. mainBColors.LeftArmColor = BrickColor.new("Pastel brown")
  75. mainBColors.LeftLegColor = BrickColor.new("Pastel brown")
  76. mainBColors.RightArmColor = BrickColor.new("Pastel brown")
  77. mainBColors.RightLegColor = BrickColor.new("Pastel brown")
  78. mainBColors.TorsoColor = BrickColor.new("Pastel brown")]]
  79. function swait(num)
  80. if num==0 or num==nil then
  81. game:service'RunService'.Heartbeat:wait(0)
  82. else
  83. for i=0,num do
  84. game:service'RunService'.Heartbeat:wait(0)
  85. end
  86. end
  87. end
  88.  
  89. function lerpz(joint, prop, cfrmz, alp)
  90. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  91. end
  92. function resetlerp()
  93. RJ.C0 = RJC0
  94. RJ.C1 = RJC1
  95. N.C0 = NC0
  96. N.C1 = NC1
  97. RS.C0 = RSC0
  98. RS.C1 = RSC1
  99. LS.C0 = LSC0
  100. LS.C1 = LSC1
  101. RH.C0 = RHC0
  102. RH.C1 = RHC1
  103. LH.C0 = LHC0
  104. LH.C1 = LHC1
  105. end
  106.  
  107. local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://" S2.Volume = 0 S2.PlaybackSpeed = 0 S2.Looped = true S2:Play()
  108. c.Head.face:remove()
  109.  
  110. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
  111. local att1 = Instance.new("Attachment", c["Right Leg"])
  112. att1.Name = "att1"
  113. att1.Position = Vector3.new(0.5, 1, 0.5)
  114. local att2 = Instance.new("Attachment", c["Right Leg"])
  115. att2.Name = "att2"
  116. att2.Position = Vector3.new(-0.5, 1, 0.5)
  117. local att3 = Instance.new("Attachment", c["Right Leg"])
  118. att3.Name = "att3"
  119. att3.Position = Vector3.new(0.5, -1, 0.5)
  120. local att4 = Instance.new("Attachment", c["Right Leg"])
  121. att4.Name = "att4"
  122. att4.Position = Vector3.new(-0.5, -1, 0.5)
  123.  
  124. local attt1 = Instance.new("Attachment", c["Left Leg"])
  125. attt1.Name = "att1"
  126. attt1.Position = Vector3.new(0.5, 1, 0.5)
  127. local attt2 = Instance.new("Attachment", c["Left Leg"])
  128. attt2.Name = "att2"
  129. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  130. local attt3 = Instance.new("Attachment", c["Left Leg"])
  131. attt3.Name = "att3"
  132. attt3.Position = Vector3.new(0.5, -1, 0.5)
  133. local attt4 = Instance.new("Attachment", c["Left Leg"])
  134. attt4.Name = "att4"
  135. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  136.  
  137. local trailtop1 = Instance.new("Trail", c["Right Leg"])
  138. trailtop1.Enabled = true
  139. trailtop1.Texture = "rbxassetid://16607923"
  140. trailtop1.Name = "toptrail"
  141. trailtop1.MinLength = 0
  142. trailtop1.Lifetime = 0.1
  143.  
  144. trailtop1.Color = ColorSequence.new(ColorArray)
  145.  
  146. trailtop1.Attachment0 = att1
  147. trailtop1.Attachment1 = att2
  148. trailtop1.Transparency = NumberSequence.new({
  149. NumberSequenceKeypoint.new(0, 0.5, 0),
  150. NumberSequenceKeypoint.new(1, 1, 0)
  151. })
  152.  
  153. local trailbot1 = Instance.new("Trail", c["Right Leg"])
  154. trailbot1.Enabled = true
  155. trailbot1.Texture = "rbxassetid://16607923"
  156. trailbot1.Name = "bottrail"
  157. trailbot1.MinLength = 0
  158. trailbot1.Lifetime = 0.1
  159.  
  160. trailbot1.Color = ColorSequence.new(ColorArray)
  161.  
  162. trailbot1.Attachment0 = att3
  163. trailbot1.Attachment1 = att4
  164. trailbot1.Transparency = NumberSequence.new({
  165. NumberSequenceKeypoint.new(0, 0.5, 0),
  166. NumberSequenceKeypoint.new(1, 1, 0)
  167. })
  168.  
  169. local trailside1 = Instance.new("Trail", c["Right Leg"])
  170. trailside1.Enabled = true
  171. trailside1.Texture = "rbxassetid://16607923"
  172. trailside1.Name = "sidetrail1"
  173. trailside1.MinLength = 0
  174. trailside1.Lifetime = 0.1
  175.  
  176. trailside1.Color = ColorSequence.new(ColorArray)
  177.  
  178. trailside1.Attachment0 = att1
  179. trailside1.Attachment1 = att3
  180. trailside1.Transparency = NumberSequence.new({
  181. NumberSequenceKeypoint.new(0, 0.5, 0),
  182. NumberSequenceKeypoint.new(1, 1, 0)
  183. })
  184.  
  185. local trailside2 = Instance.new("Trail", c["Right Leg"])
  186. trailside2.Enabled = true
  187. trailside2.Texture = "rbxassetid://16607923"
  188. trailside2.Name = "sidetrail2"
  189. trailside2.MinLength = 0
  190. trailside2.Lifetime = 0.1
  191. spawn(function()
  192. while true do wait()
  193. trailside2.Color = ColorSequence.new(ColorArray)
  194. end
  195. end)
  196. trailside2.Attachment0 = att2
  197. trailside2.Attachment1 = att4
  198. trailside2.Transparency = NumberSequence.new({
  199. NumberSequenceKeypoint.new(0, 0.5, 0),
  200. NumberSequenceKeypoint.new(1, 1, 0)
  201. })
  202.  
  203.  
  204. local trailtop12 = Instance.new("Trail", c["Left Leg"])
  205. trailtop12.Enabled = true
  206. trailtop12.Texture = "rbxassetid://16607923"
  207. trailtop12.Name = "toptrail"
  208. trailtop12.MinLength = 0
  209. trailtop12.Lifetime = 0.1
  210. spawn(function()
  211. while true do wait()
  212. trailtop12.Color = ColorSequence.new(ColorArray)
  213. end
  214. end)
  215. trailtop12.Attachment0 = attt1
  216. trailtop12.Attachment1 = attt2
  217. trailtop12.Transparency = NumberSequence.new({
  218. NumberSequenceKeypoint.new(0, 0.5, 0),
  219. NumberSequenceKeypoint.new(1, 1, 0)
  220. })
  221.  
  222. local trailbot2 = Instance.new("Trail", c["Left Leg"])
  223. trailbot2.Enabled = true
  224. trailbot2.Texture = "rbxassetid://16607923"
  225. trailbot2.Name = "bottrail"
  226. trailbot2.MinLength = 0
  227. trailbot2.Lifetime = 0.1
  228.  
  229. trailbot2.Color = ColorSequence.new(ColorArray)
  230.  
  231. trailbot2.Attachment0 = attt3
  232. trailbot2.Attachment1 = attt4
  233. trailbot2.Transparency = NumberSequence.new({
  234. NumberSequenceKeypoint.new(0, 0.5, 0),
  235. NumberSequenceKeypoint.new(1, 1, 0)
  236. })
  237.  
  238. local trailside12 = Instance.new("Trail", c["Left Leg"])
  239. trailside12.Enabled = true
  240. trailside12.Texture = "rbxassetid://16607923"
  241. trailside12.Name = "sidetrail1"
  242. trailside12.MinLength = 0
  243. trailside12.Lifetime = 0.1
  244.  
  245. trailside12.Color = ColorSequence.new(ColorArray)
  246.  
  247. trailside12.Attachment0 = attt1
  248. trailside12.Attachment1 = attt3
  249. trailside12.Transparency = NumberSequence.new({
  250. NumberSequenceKeypoint.new(0, 0.5, 0),
  251. NumberSequenceKeypoint.new(1, 1, 0)
  252. })
  253.  
  254. local trailside22 = Instance.new("Trail", c["Left Leg"])
  255. trailside22.Enabled = true
  256. trailside22.Texture = "rbxassetid://16607923"
  257. trailside22.Name = "sidetrail2"
  258. trailside22.MinLength = 0
  259. trailside22.Lifetime = 0.1
  260.  
  261. trailside22.Color = ColorSequence.new(ColorArray)
  262.  
  263. trailside22.Attachment0 = attt2
  264. trailside22.Attachment1 = attt4
  265. trailside22.Transparency = NumberSequence.new({
  266. NumberSequenceKeypoint.new(0, 0.5, 0),
  267. NumberSequenceKeypoint.new(1, 1, 0)
  268. })
  269.  
  270.  
  271. local att1 = Instance.new("Attachment", c["Right Arm"])
  272. att1.Name = "att1"
  273. att1.Position = Vector3.new(0.5, 1, 0.5)
  274. local att2 = Instance.new("Attachment", c["Right Arm"])
  275. att2.Name = "att2"
  276. att2.Position = Vector3.new(-0.5, 1, 0.5)
  277. local att3 = Instance.new("Attachment", c["Right Arm"])
  278. att3.Name = "att3"
  279. att3.Position = Vector3.new(0.5, -1, 0.5)
  280. local att4 = Instance.new("Attachment", c["Right Arm"])
  281. att4.Name = "att4"
  282. att4.Position = Vector3.new(-0.5, -1, 0.5)
  283.  
  284. local attt1 = Instance.new("Attachment", c["Left Arm"])
  285. attt1.Name = "att1"
  286. attt1.Position = Vector3.new(0.5, 1, 0.5)
  287. local attt2 = Instance.new("Attachment", c["Left Arm"])
  288. attt2.Name = "att2"
  289. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  290. local attt3 = Instance.new("Attachment", c["Left Arm"])
  291. attt3.Name = "att3"
  292. attt3.Position = Vector3.new(0.5, -1, 0.5)
  293. local attt4 = Instance.new("Attachment", c["Left Arm"])
  294. attt4.Name = "att4"
  295. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  296.  
  297. local trailtop1 = Instance.new("Trail", c["Right Arm"])
  298. trailtop1.Enabled = true
  299. trailtop1.Texture = "rbxassetid://16607923"
  300. trailtop1.Name = "toptrail"
  301. trailtop1.MinLength = 0
  302. trailtop1.Lifetime = 0.1
  303.  
  304. trailtop1.Color = ColorSequence.new(ColorArray)
  305.  
  306. trailtop1.Attachment0 = att1
  307. trailtop1.Attachment1 = att2
  308. trailtop1.Transparency = NumberSequence.new({
  309. NumberSequenceKeypoint.new(0, 0.5, 0),
  310. NumberSequenceKeypoint.new(1, 1, 0)
  311. })
  312.  
  313. local trailbot1 = Instance.new("Trail", c["Right Arm"])
  314. trailbot1.Enabled = true
  315. trailbot1.Texture = "rbxassetid://16607923"
  316. trailbot1.Name = "bottrail"
  317. trailbot1.MinLength = 0
  318. trailbot1.Lifetime = 0.1
  319. spawn(function()
  320. while true do wait()
  321. trailbot1.Color = ColorSequence.new(ColorArray)
  322. end
  323. end)
  324. trailbot1.Attachment0 = att3
  325. trailbot1.Attachment1 = att4
  326. trailbot1.Transparency = NumberSequence.new({
  327. NumberSequenceKeypoint.new(0, 0.5, 0),
  328. NumberSequenceKeypoint.new(1, 1, 0)
  329. })
  330.  
  331. local trailside1 = Instance.new("Trail", c["Right Arm"])
  332. trailside1.Enabled = true
  333. trailside1.Texture = "rbxassetid://16607923"
  334. trailside1.Name = "sidetrail1"
  335. trailside1.MinLength = 0
  336. trailside1.Lifetime = 0.1
  337.  
  338. trailside1.Color = ColorSequence.new(ColorArray)
  339.  
  340. trailside1.Attachment0 = att1
  341. trailside1.Attachment1 = att3
  342. trailside1.Transparency = NumberSequence.new({
  343. NumberSequenceKeypoint.new(0, 0.5, 0),
  344. NumberSequenceKeypoint.new(1, 1, 0)
  345. })
  346.  
  347. local trailside2 = Instance.new("Trail", c["Right Arm"])
  348. trailside2.Enabled = true
  349. trailside2.Texture = "rbxassetid://16607923"
  350. trailside2.Name = "sidetrail2"
  351. trailside2.MinLength = 0
  352. trailside2.Lifetime = 0.1
  353.  
  354. trailside2.Color = ColorSequence.new(ColorArray)
  355.  
  356. trailside2.Attachment0 = att2
  357. trailside2.Attachment1 = att4
  358. trailside2.Transparency = NumberSequence.new({
  359. NumberSequenceKeypoint.new(0, 0.5, 0),
  360. NumberSequenceKeypoint.new(1, 1, 0)
  361. })
  362.  
  363.  
  364. local trailtop12 = Instance.new("Trail", c["Left Arm"])
  365. trailtop12.Enabled = true
  366. trailtop12.Texture = "rbxassetid://16607923"
  367. trailtop12.Name = "toptrail"
  368. trailtop12.MinLength = 0
  369. trailtop12.Lifetime = 0.1
  370.  
  371. trailtop12.Color = ColorSequence.new(ColorArray)
  372.  
  373. trailtop12.Attachment0 = attt1
  374. trailtop12.Attachment1 = attt2
  375. trailtop12.Transparency = NumberSequence.new({
  376. NumberSequenceKeypoint.new(0, 0.5, 0),
  377. NumberSequenceKeypoint.new(1, 1, 0)
  378. })
  379.  
  380. local trailbot2 = Instance.new("Trail", c["Left Arm"])
  381. trailbot2.Enabled = true
  382. trailbot2.Texture = "rbxassetid://16607923"
  383. trailbot2.Name = "bottrail"
  384. trailbot2.MinLength = 0
  385. trailbot2.Lifetime = 0.1
  386.  
  387. trailbot2.Color = ColorSequence.new(ColorArray)
  388.  
  389. trailbot2.Attachment0 = attt3
  390. trailbot2.Attachment1 = attt4
  391. trailbot2.Transparency = NumberSequence.new({
  392. NumberSequenceKeypoint.new(0, 0.5, 0),
  393. NumberSequenceKeypoint.new(1, 1, 0)
  394. })
  395.  
  396. local trailside12 = Instance.new("Trail", c["Left Arm"])
  397. trailside12.Enabled = true
  398. trailside12.Texture = "rbxassetid://16607923"
  399. trailside12.Name = "sidetrail1"
  400. trailside12.MinLength = 0
  401. trailside12.Lifetime = 0.1
  402.  
  403. trailside12.Color = ColorSequence.new(ColorArray)
  404.  
  405. trailside12.Attachment0 = attt1
  406. trailside12.Attachment1 = attt3
  407. trailside12.Transparency = NumberSequence.new({
  408. NumberSequenceKeypoint.new(0, 0.5, 0),
  409. NumberSequenceKeypoint.new(1, 1, 0)
  410. })
  411.  
  412. local trailside22 = Instance.new("Trail", c["Left Arm"])
  413. trailside22.Enabled = true
  414. trailside22.Texture = "rbxassetid://16607923"
  415. trailside22.Name = "sidetrail2"
  416. trailside22.MinLength = 0
  417. trailside22.Lifetime = 0.1
  418.  
  419. trailside22.Color = ColorSequence.new(ColorArray)
  420.  
  421. trailside22.Attachment0 = attt2
  422. trailside22.Attachment1 = attt4
  423. trailside22.Transparency = NumberSequence.new({
  424. NumberSequenceKeypoint.new(0, 0.5, 0),
  425. NumberSequenceKeypoint.new(1, 1, 0)
  426. })
  427.  
  428. local att1 = Instance.new("Attachment", c["Torso"])
  429. att1.Name = "att1"
  430. att1.Position = Vector3.new(1, 1, 0.5)
  431. local att2 = Instance.new("Attachment", c["Torso"])
  432. att2.Name = "att2"
  433. att2.Position = Vector3.new(-1, 1, 0.5)
  434. local att3 = Instance.new("Attachment", c["Torso"])
  435. att3.Name = "att3"
  436. att3.Position = Vector3.new(1, -1, 0.5)
  437. local att4 = Instance.new("Attachment", c["Torso"])
  438. att4.Name = "att4"
  439. att4.Position = Vector3.new(-1, -1, 0.5)
  440.  
  441. local attt1 = Instance.new("Attachment", c["Head"])
  442. attt1.Name = "att1"
  443. attt1.Position = Vector3.new(.55, .55, 0.025)
  444. local attt2 = Instance.new("Attachment", c["Head"])
  445. attt2.Name = "att2"
  446. attt2.Position = Vector3.new(-.55, .55, 0.025)
  447. local attt3 = Instance.new("Attachment", c["Head"])
  448. attt3.Name = "att3"
  449. attt3.Position = Vector3.new(.55, -.5, 0.025)
  450. local attt4 = Instance.new("Attachment", c["Head"])
  451. attt4.Name = "att4"
  452. attt4.Position = Vector3.new(-.55, -.5, 0.025)
  453. local trailtop1 = Instance.new("Trail", c["Torso"])
  454. trailtop1.Enabled = true
  455. trailtop1.Texture = "rbxassetid://16607923"
  456. trailtop1.Name = "toptrail"
  457. trailtop1.MinLength = 0
  458. trailtop1.Lifetime = 0.1
  459.  
  460. trailtop1.Color = ColorSequence.new(ColorArray)
  461.  
  462. trailtop1.Attachment0 = att1
  463. trailtop1.Attachment1 = att2
  464. trailtop1.Transparency = NumberSequence.new({
  465. NumberSequenceKeypoint.new(0, 0.5, 0),
  466. NumberSequenceKeypoint.new(1, 1, 0)
  467. })
  468. local trailbot1 = Instance.new("Trail", c["Torso"])
  469. trailbot1.Enabled = true
  470. trailbot1.Texture = "rbxassetid://16607923"
  471. trailbot1.Name = "bottrail"
  472. trailbot1.MinLength = 0
  473. trailbot1.Lifetime = 0.1
  474.  
  475. trailbot1.Color = ColorSequence.new(ColorArray)
  476.  
  477. trailbot1.Attachment0 = att3
  478. trailbot1.Attachment1 = att4
  479. trailbot1.Transparency = NumberSequence.new({
  480. NumberSequenceKeypoint.new(0, 0.5, 0),
  481. NumberSequenceKeypoint.new(1, 1, 0)
  482. })
  483. local trailside1 = Instance.new("Trail", c["Torso"])
  484. trailside1.Enabled = true
  485. trailside1.Texture = "rbxassetid://16607923"
  486. trailside1.Name = "sidetrail1"
  487. trailside1.MinLength = 0
  488. trailside1.Lifetime = 0.1
  489.  
  490. trailside1.Color = ColorSequence.new(ColorArray)
  491.  
  492. trailside1.Attachment0 = att1
  493. trailside1.Attachment1 = att3
  494. trailside1.Transparency = NumberSequence.new({
  495. NumberSequenceKeypoint.new(0, 0.5, 0),
  496. NumberSequenceKeypoint.new(1, 1, 0)
  497. })
  498. local trailside2 = Instance.new("Trail", c["Torso"])
  499. trailside2.Enabled = true
  500. trailside2.Texture = "rbxassetid://16607923"
  501. trailside2.Name = "sidetrail2"
  502. trailside2.MinLength = 0
  503. trailside2.Lifetime = 0.1
  504.  
  505. trailside2.Color = ColorSequence.new(ColorArray)
  506.  
  507. trailside2.Attachment0 = att2
  508. trailside2.Attachment1 = att4
  509. trailside2.Transparency = NumberSequence.new({
  510. NumberSequenceKeypoint.new(0, 0.5, 0),
  511. NumberSequenceKeypoint.new(1, 1, 0)
  512. })
  513. local trailtop12 = Instance.new("Trail", c["Head"])
  514. trailtop12.Enabled = true
  515. trailtop12.Texture = "rbxassetid://16607923"
  516. trailtop12.Name = "toptrail"
  517. trailtop12.MinLength = 0
  518. trailtop12.Lifetime = 0.1
  519.  
  520. trailtop12.Color = ColorSequence.new(ColorArray)
  521.  
  522. trailtop12.Attachment0 = attt1
  523. trailtop12.Attachment1 = attt2
  524. trailtop12.Transparency = NumberSequence.new({
  525. NumberSequenceKeypoint.new(0, 0.5, 0),
  526. NumberSequenceKeypoint.new(1, 1, 0)
  527. })
  528. local trailbot2 = Instance.new("Trail", c["Head"])
  529. trailbot2.Enabled = true
  530. trailbot2.Texture = "rbxassetid://16607923"
  531. trailbot2.Name = "bottrail"
  532. trailbot2.MinLength = 0
  533. trailbot2.Lifetime = 0.1
  534.  
  535. trailbot2.Color = ColorSequence.new(ColorArray)
  536.  
  537. trailbot2.Attachment0 = attt3
  538. trailbot2.Attachment1 = attt4
  539. trailbot2.Transparency = NumberSequence.new({
  540. NumberSequenceKeypoint.new(0, 0.5, 0),
  541. NumberSequenceKeypoint.new(1, 1, 0)
  542. })
  543. local trailside12 = Instance.new("Trail", c["Head"])
  544. trailside12.Enabled = true
  545. trailside12.Texture = "rbxassetid://16607923"
  546. trailside12.Name = "sidetrail1"
  547. trailside12.MinLength = 0
  548. trailside12.Lifetime = 0.1
  549.  
  550. trailside12.Color = ColorSequence.new(ColorArray)
  551.  
  552. trailside12.Attachment0 = attt1
  553. trailside12.Attachment1 = attt3
  554. trailside12.Transparency = NumberSequence.new({
  555. NumberSequenceKeypoint.new(0, 0.5, 0),
  556. NumberSequenceKeypoint.new(1, 1, 0)
  557. })
  558. local trailside22 = Instance.new("Trail", c["Head"])
  559. trailside22.Enabled = true
  560. trailside22.Texture = "rbxassetid://16607923"
  561. trailside22.Name = "sidetrail2"
  562. trailside22.MinLength = 0
  563. trailside22.Lifetime = 0.1
  564.  
  565. trailside22.Color = ColorSequence.new(ColorArray)
  566.  
  567. trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
  568. trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
  569.  
  570. Sped = 0
  571.  
  572. function ragplayer(cactus)
  573. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://131026421" S.Volume = 2 S:Play()
  574. cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
  575. if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
  576. cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
  577. makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
  578. maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
  579. end
  580. if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
  581. cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
  582. makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
  583. maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
  584. end
  585. if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
  586. cactus.Torso:FindFirstChild("Right Hip"):Destroy()
  587. makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
  588. maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
  589. end
  590. if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
  591. cactus.Torso:FindFirstChild("Left Hip"):Destroy()
  592. makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
  593. maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
  594. end
  595. cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15)
  596. end
  597. function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  598.  
  599. function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end
  600.  
  601. local hitz = false
  602. c.HumanoidRootPart.Touched:connect(function(Hit)
  603. if thing >= 100 then
  604. if hitz == false then hitz = true
  605. ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://386946017" S.Volume = 6 S:Play()
  606. wait(15)
  607. end
  608. end
  609. end)
  610.  
  611. function Spin()
  612. attack = true
  613. while attack == true do Sped = Sped + 0.25
  614. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1)
  615. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  616. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  617. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  618. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  619. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  620. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  621. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  622. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  623. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  624. swait()
  625. end
  626. end
  627.  
  628. SanicScreams = {498608864,156820723}
  629.  
  630. mouse.KeyDown:connect(function(key)
  631. if attack == true then return end
  632. if key == "q" then
  633. Spin()
  634. end
  635. if key == "e" then
  636. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://1034903243" S.Volume = 10 S:Play()
  637. wait(1.25)
  638. local Sanic = SanicScreams[math.random(1,#SanicScreams)]
  639. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://"..Sanic S.Volume = 10 S:Play()
  640. spawn(function()
  641. local Sp = Instance.new("Part",game.Workspace)Sp.BrickColor = BrickColor.new("Cyan")Sp.Material = "Neon" Sp.Size = Vector3.new(1,1,1) Sp.Anchored = true Sp.CanCollide = false
  642. local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame
  643. for i = 1,25 do
  644. SPM.Scale = SPM.Scale + Vector3.new(4,4,4)
  645. Sp.Transparency = Sp.Transparency + 1/25
  646. swait()
  647. end
  648. end)
  649. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://214444596" S.Volume = 10 S:Play()
  650. Sped = 10000000000
  651. end
  652. end)
  653.  
  654. mouse.KeyUp:connect(function(key)
  655. if key == "q" then
  656. attack = false
  657. end
  658. end)
  659.  
  660. local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15)
  661. P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart"
  662. P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass"
  663. spawn(function()
  664. while true do
  665. P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z)
  666. swait()
  667. end
  668. end)
  669.  
  670. anim.Parent = nil
  671. sine = 0
  672.  
  673. game:GetService("RunService").RenderStepped:connect(function()
  674. if attack == false then
  675. thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  676. game.Workspace.CurrentCamera.FieldOfView = 70+thing/100
  677. if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1
  678. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1)
  679. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  680. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  681. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  682. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  683. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  684. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  685. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  686. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  687. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  688. elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then
  689. sine = sine + 1 Sped = Sped + 0.1
  690. if thing <= 200 then
  691. if S2.PlaybackSpeed >= 1 then
  692. S2.PlaybackSpeed = 1
  693. else
  694. S2.PlaybackSpeed = thing/80
  695. end
  696. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  697. S2.Volume = thing/20
  698. end
  699. if thing <= 200 then
  700. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  701. S2.Volume = thing/20
  702. else
  703. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  704. end
  705. if thing <= 100 then
  706. for i,v in pairs(c:children()) do
  707. if v.ClassName == "Part" then
  708. for i,v2 in pairs(v:children()) do
  709. if v2.ClassName == "Trail" then
  710. v2.Enabled = false
  711. v2.LightEmission = 1
  712. end
  713. end
  714. end
  715. end
  716. else
  717. for i,v in pairs(c:children()) do
  718. if v.ClassName == "Part" then
  719. for i,v2 in pairs(v:children()) do
  720. if v2.ClassName == "Trail" then
  721. v2.Lifetime = 2
  722. v2.Enabled = true
  723. end
  724. end
  725. end
  726. end
  727. end
  728. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1)
  729. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  730. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1)
  731. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  732. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1)
  733. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  734. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  735. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  736. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  737. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  738. else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0
  739. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  740. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  741. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  742. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  743. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  744. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  745. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  746. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  747. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  748. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  749. end
  750. for i,v in pairs (c:children()) do
  751. if v.ClassName == "Accessory" then
  752. for i,v2 in pairs (v:children()) do
  753. if v2.ClassName == "Part" then
  754. v2.Anchored = false
  755. end
  756. end
  757. end
  758. for i,v in pairs (c:children()) do
  759. if v.ClassName == "Part" then
  760. v.Anchored = false
  761. end
  762. end
  763. end
  764. end
  765. end)
  766. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  767. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  768. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  769. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  770. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  771. local R3 = {N=Region3.new}
  772. local De = S.Debris
  773. local WS = workspace
  774. local Lght = S.Lighting
  775. local RepS = S.ReplicatedStorage
  776. local IN = Instance.new
  777. local Plrs = S.Players
  778.  
  779. local Emit = IN("ParticleEmitter").Emit;
  780.  
  781. --// Initializing \\--
  782. local Plr = Plrs.LocalPlayer
  783. local Char = Plr.Character
  784. local Hum = Char:FindFirstChildOfClass'Humanoid'
  785. local RArm = Char["Right Arm"]
  786. local LArm = Char["Left Arm"]
  787. local RLeg = Char["Right Leg"]
  788. local LLeg = Char["Left Leg"]
  789. local Root = Char:FindFirstChild'HumanoidRootPart'
  790. local Torso = Char.Torso
  791. local Head = Char.Head
  792. local NeutralAnims = true
  793. local Attack = false
  794. local Debounces = {Debounces={}}
  795. local Mouse = Plr:GetMouse()
  796. local Hit = {}
  797. local Sine = 0
  798. local Change = 1
  799.  
  800. local Effects = IN("Folder",Char)
  801. Effects.Name = "Effects"
  802.  
  803.  
  804. --// Debounce System \\--
  805.  
  806.  
  807. function Debounces:New(name,cooldown)
  808. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  809. setmetatable(aaaaa,{__index = Debounces})
  810. Debounces.Debounces[name] = aaaaa
  811. return aaaaa
  812. end
  813.  
  814. function Debounces:Use(overrideUsable)
  815. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  816. if(self.Usable or overrideUsable)then
  817. self.Usable = false
  818. self.CoolingDown = true
  819. local LastUse = time()
  820. self.LastUse = LastUse
  821. delay(self.Cooldown or 2,function()
  822. if(self.LastUse == LastUse)then
  823. self.CoolingDown = false
  824. self.Usable = true
  825. end
  826. end)
  827. end
  828. end
  829.  
  830. function Debounces:Get(name)
  831. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  832. for i,v in next, Debounces.Debounces do
  833. if(i == name)then
  834. return v;
  835. end
  836. end
  837. end
  838.  
  839. function Debounces:GetProgressPercentage()
  840. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  841. if(self.CoolingDown and not self.Usable)then
  842. return math.max(
  843. math.floor(
  844. (
  845. (time()-self.LastUse)/self.Cooldown or 2
  846. )*100
  847. )
  848. )
  849. else
  850. return 100
  851. end
  852. end
  853.  
  854. --// Instance Creation Functions \\--
  855.  
  856. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  857. local Sound = IN("Sound")
  858. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  859. Sound.Pitch = pitch or 1
  860. Sound.Volume = volume or 1
  861. Sound.Looped = looped or false
  862. if(autoPlay)then
  863. coroutine.wrap(function()
  864. repeat wait() until Sound.IsLoaded
  865. Sound.Playing = autoPlay or false
  866. end)()
  867. end
  868. if(not looped and effect)then
  869. Sound.Stopped:connect(function()
  870. Sound.Volume = 0
  871. Sound:destroy()
  872. end)
  873. elseif(effect)then
  874. warn("Sound can't be looped and a sound effect!")
  875. end
  876. Sound.Parent =parent or Torso
  877. return Sound
  878. end
  879. function Part(parent,color,material,size,cframe,anchored,cancollide)
  880. local part = IN("Part")
  881. part.Parent = parent or Char
  882. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  883. part.Material = material or Enum.Material.SmoothPlastic
  884. part.TopSurface,part.BottomSurface=10,10
  885. part.Size = size or V3.N(1,1,1)
  886. part.CFrame = cframe or CF.N(0,0,0)
  887. part.CanCollide = cancollide or false
  888. part.Anchored = anchored or false
  889. return part
  890. end
  891.  
  892. function Weld(part0,part1,c0,c1)
  893. local weld = IN("Weld")
  894. weld.Parent = part0
  895. weld.Part0 = part0
  896. weld.Part1 = part1
  897. weld.C0 = c0 or CF.N()
  898. weld.C1 = c1 or CF.N()
  899. return weld
  900. end
  901.  
  902. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  903. local part = IN("SpecialMesh")
  904. part.MeshId = meshid or ""
  905. part.TextureId = textid or ""
  906. part.Scale = scale or V3.N(1,1,1)
  907. part.Offset = offset or V3.N(0,0,0)
  908. part.MeshType = meshtype or Enum.MeshType.Sphere
  909. part.Parent = parent
  910. return part
  911. end
  912.  
  913. NewInstance = function(instance,parent,properties)
  914. local inst = Instance.new(instance)
  915. inst.Parent = parent
  916. if(properties)then
  917. for i,v in next, properties do
  918. pcall(function() inst[i] = v end)
  919. end
  920. end
  921. return inst;
  922. end
  923.  
  924. function Clone(instance,parent,properties)
  925. local inst = instance:Clone()
  926. inst.Parent = parent
  927. if(properties)then
  928. for i,v in next, properties do
  929. pcall(function() inst[i] = v end)
  930. end
  931. end
  932. return inst;
  933. end
  934.  
  935. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  936. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  937. local Sound = IN("Sound")
  938. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  939. Sound.Pitch = pitch or 1
  940. Sound.Volume = volume or 1
  941. Sound.Looped = looped or false
  942. if(autoPlay)then
  943. coroutine.wrap(function()
  944. repeat wait() until Sound.IsLoaded
  945. Sound.Playing = autoPlay or false
  946. end)()
  947. end
  948. if(not looped and effect)then
  949. Sound.Stopped:connect(function()
  950. Sound.Volume = 0
  951. soundPart:destroy()
  952. end)
  953. elseif(effect)then
  954. warn("Sound can't be looped and a sound effect!")
  955. end
  956. Sound.Parent = soundPart
  957. return Sound
  958. end
  959.  
  960.  
  961. --// Extended ROBLOX tables \\--
  962. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  963. --// Require stuff \\--
  964. function CamShake(who,times,intense,origin)
  965. coroutine.wrap(function()
  966. if(script:FindFirstChild'CamShake')then
  967. local cam = script.CamShake:Clone()
  968. cam:WaitForChild'intensity'.Value = intense
  969. cam:WaitForChild'times'.Value = times
  970.  
  971. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  972. cam.Parent = who
  973. wait()
  974. cam.Disabled = false
  975. elseif(who == Plr or who == Char)then
  976. local intensity = intense
  977. local cam = workspace.CurrentCamera
  978. for i = 1, times do
  979. local camDistFromOrigin
  980. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  981. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  982. elseif(typeof(origin) == 'Vector3')then
  983. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  984. end
  985. if(camDistFromOrigin)then
  986. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  987. end
  988. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  989. swait()
  990. end
  991. end
  992. end)()
  993. end
  994.  
  995. function CamShakeAll(times,intense,origin)
  996. for _,v in next, Plrs:players() do
  997. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  998. end
  999. end
  1000.  
  1001. function ServerScript(code)
  1002. if(script:FindFirstChild'Loadstring')then
  1003. local load = script.Loadstring:Clone()
  1004. load:WaitForChild'Sauce'.Value = code
  1005. load.Disabled = false
  1006. load.Parent = workspace
  1007. elseif(NS and typeof(NS) == 'function')then
  1008. NS(code,workspace)
  1009. else
  1010. warn("no serverscripts lol")
  1011. end
  1012. end
  1013.  
  1014. function RunLocal(where,code)
  1015. ServerScript([[
  1016. wait()
  1017. script.Parent=nil
  1018. if(not _G.Http)then _G.Http = game:service'HttpService' end
  1019.  
  1020. local Http = _G.Http or game:service'HttpService'
  1021.  
  1022. local source = ]].."[["..code.."]]"..[[
  1023. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  1024. local asd = Http:PostAsync(link,source)
  1025. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  1026. local ID = Http:JSONDecode(asd).Result.Require_ID
  1027. local vs = require(ID).VORTH_SCRIPT
  1028. vs.Parent = game.]]..where:GetFullName()
  1029. )
  1030. end
  1031.  
  1032. --// Customization \\--
  1033.  
  1034. local Frame_Speed = 60;
  1035. local WalkSpeed = 16
  1036. local DamageColor = BrickColor.new'White'
  1037.  
  1038. local MagicCircles = {
  1039. Default = {Color=C3.N(1,1,1),Texture1=0,Texture2=0},
  1040. OrangeWarPheonix = {EffectColor=BrickColor.new'Deep orange'.Color,Color=C3.N(.9,.9,.9),Texture1=623153986,Texture2=623153990},
  1041. BlueWarPheonix = {EffectColor=BrickColor.new'Teal'.Color,Color=C3.N(.9,.9,.9),Texture1=462499935,Texture2=462499970},
  1042. Plasma = {Color=C3.N(0.70588235294118,0,0.8),Texture1=415906687,Texture2=415906702},
  1043. Water = {Color=C3.RGB(33, 84, 185),Texture1=408441330,Texture2=408441353},
  1044. Earth = {Color=C3.RGB(86, 36, 36),Texture1=394253616,Texture2=394253651},
  1045. Wind = {Color=C3.N(.8,.8,.8),Texture1=376006317,Texture2=376006346},
  1046. Poseidon = {Color=C3.RGB(71, 99, 130),Texture1=346727970,Texture2=346727994},
  1047. AetherLightning = {Color=C3.RGB(23, 255, 197),Texture1=348320016,Texture2=348320030},
  1048. Light = {Color=C3.N(1,1,0),Texture1=343192085,Texture2=343192112},
  1049. Fire = {Color=C3.N(1,0,0),EffectColor=BrickColor.new'Bright red'.Color,Texture1=313945544,Texture2=313945673},
  1050. Lightning = {Color=C3.N(0,1,1),Texture1=314842290,Texture2=314842440},
  1051. GasterBlaster = {Color=C3.N(1,1,1),Texture1=331948662,Texture2=331948662}
  1052. }
  1053.  
  1054. local MagicVariant = MagicCircles.GasterBlaster --[[ You can change this for a different element
  1055. Example:
  1056.  
  1057. Changing MagicCircles.GasterBlaster to MagicCircles.Light
  1058.  
  1059. would make it a Light Element
  1060. ]]
  1061.  
  1062. --// Stop animations \\--
  1063. for _,v in next, Hum:GetPlayingAnimationTracks() do
  1064. v:Stop();
  1065. end
  1066.  
  1067. pcall(game.Destroy,Char:FindFirstChild'Animate')
  1068. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  1069.  
  1070. --// Joints \\--
  1071.  
  1072. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5,0.5,0),C1 = CF.N(0,.5,0)})
  1073. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5,0.5,0),C1 = CF.N(0,.5,0)})
  1074. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5,0)})
  1075. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5,-1,0),C1 = CF.N(0,1,0)})
  1076. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5,-1,0),C1 = CF.N(0,1,0)})
  1077. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  1078.  
  1079. local LSC0 = LS.C0
  1080. local RSC0 = RS.C0
  1081. local NKC0 = NK.C0
  1082. local LHC0 = LH.C0
  1083. local RHC0 = RH.C0
  1084. local RJC0 = RJ.C0
  1085.  
  1086. --// Artificial HB \\--
  1087.  
  1088. local ArtificialHB = IN("BindableEvent", script)
  1089. ArtificialHB.Name = "Heartbeat"
  1090.  
  1091. script:WaitForChild("Heartbeat")
  1092.  
  1093. local tf = 0
  1094. local allowframeloss = false
  1095. local tossremainder = false
  1096. local lastframe = tick()
  1097. local frame = 1/Frame_Speed
  1098. ArtificialHB:Fire()
  1099.  
  1100. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1101. tf = tf + s
  1102. if tf >= frame then
  1103. if allowframeloss then
  1104. script.Heartbeat:Fire()
  1105. lastframe = tick()
  1106. else
  1107. for i = 1, math.floor(tf / frame) do
  1108. ArtificialHB:Fire()
  1109. end
  1110. lastframe = tick()
  1111. end
  1112. if tossremainder then
  1113. tf = 0
  1114. else
  1115. tf = tf - frame * math.floor(tf / frame)
  1116. end
  1117. end
  1118. end)
  1119.  
  1120. function swait(num)
  1121. if num == 0 or num == nil then
  1122. ArtificialHB.Event:wait()
  1123. else
  1124. for i = 0, num do
  1125. ArtificialHB.Event:wait()
  1126. end
  1127. end
  1128. end
  1129.  
  1130.  
  1131. --// Effect Function(s) \\--
  1132.  
  1133. function NumSeq(...)
  1134. local tab = {...}
  1135. local Sequence = {}
  1136. for _,v in next, tab do
  1137. table.insert(Sequence,NumberSequenceKeypoint.new(unpack(v)))
  1138. end
  1139. if(tab[#tab][1] ~= 1)then
  1140. local final = tab[#tab]
  1141. table.insert(Sequence,NumberSequenceKeypoint.new(1,final[2],final[3]))
  1142. end
  1143. return NumberSequence.new(Sequence)
  1144. end
  1145.  
  1146. local DefaultRingParticle = IN("ParticleEmitter")
  1147. DefaultRingParticle.Name = 'RingEmit'
  1148. DefaultRingParticle.LightEmission = 1
  1149. DefaultRingParticle.Size = NumSeq({0,0},{.7,6.28},{.8,5.03},{1,2.9})
  1150. DefaultRingParticle.Texture = "rbxassetid://313951123"
  1151. DefaultRingParticle.Transparency = NumberSequence.new(0,1)
  1152. DefaultRingParticle.ZOffset = 1
  1153. DefaultRingParticle.Drag = 0
  1154. DefaultRingParticle.Acceleration = V3.N()
  1155. DefaultRingParticle.LockedToPart = true
  1156. DefaultRingParticle.Enabled = false
  1157. DefaultRingParticle.Lifetime = NumberRange.new(.6,.6)
  1158. DefaultRingParticle.Rate = 5
  1159. DefaultRingParticle.Rotation = NumberRange.new(0,0)
  1160. DefaultRingParticle.RotSpeed = NumberRange.new(0,0)
  1161. DefaultRingParticle.Speed = NumberRange.new(0,0)
  1162. DefaultRingParticle.SpreadAngle = Vector2.new(0,0)
  1163.  
  1164. function MagicCircle(Data)
  1165. local Variant = Data.Variant or MagicCircles.Default;
  1166.  
  1167. local Size = Data.Size or 10;
  1168. local Pos = Data.Pos*CF.A(M.R(-90),M.R(-90),0) or Torso.CFrame*CF.A(M.R(-90),M.R(-90),0);
  1169. local GrowTime = Data.Time or 1;
  1170.  
  1171. local WeldData = Data.Weld or false;
  1172.  
  1173.  
  1174. local Color = Variant.Color or C3.N(.9,.9,.0)
  1175.  
  1176. local CreationParticle = Data.CreationParticle or DefaultRingParticle;
  1177.  
  1178.  
  1179. local Circle = Part(Effects,BrickColor.new'Maroon',Enum.Material.SmoothPlastic,V3.N(.05,.05,.05),Pos,true,false)
  1180. local CircleM = NewInstance("BlockMesh",Circle,{Scale=V3.N()})
  1181.  
  1182.  
  1183. local Emitter = DefaultRingParticle:Clone();
  1184. Emitter.Parent = Circle
  1185. Emitter.Color = ColorSequence.new(Variant.Color)
  1186.  
  1187. local Top = IN("Decal",Circle)
  1188. Top.Texture = "rbxassetid://"..Variant.Texture1
  1189. Top.Face = Enum.NormalId.Top
  1190.  
  1191. local Btm = IN("Decal",Circle)
  1192. Btm.Texture = "rbxassetid://"..Variant.Texture2
  1193. Btm.Face = Enum.NormalId.Bottom
  1194.  
  1195. if(WeldData)then
  1196. Circle.Anchored = false
  1197. Weld(WeldData,Circle,Pos,CF.N())
  1198. end
  1199. local GrowFrames = GrowTime * Frame_Speed
  1200. print(GrowFrames)
  1201. --Size*20,0,Size*20
  1202. Circle.Transparency = 1
  1203. local GrownEvent = Instance.new("BindableEvent",Circle)
  1204. coroutine.wrap(function()
  1205.  
  1206. Emit(Emitter,5)
  1207. local End = Size*20
  1208. local grow = End/GrowFrames
  1209. for i = 1, GrowFrames+1 do
  1210. local aa = math.min(CircleM.Scale.x + grow,End)
  1211. if(aa >= End)then break end
  1212. CircleM.Scale = V3.N(aa,0,aa)
  1213. swait()
  1214. end
  1215. CircleM.Scale = V3.N(End,0,End)
  1216. GrownEvent:Fire()
  1217.  
  1218. end)()
  1219.  
  1220. local Table = {
  1221. Circle = Circle,
  1222. Mesh = CircleM,
  1223. Grow = function(size)
  1224. CircleM.Scale = CircleM.Scale + V3.N(size*20,0,size*20)
  1225. end,
  1226. Destroy = function(timer)
  1227. coroutine.wrap(function()
  1228. if(not timer)then timer = 1 end
  1229. Tween(CircleM,{Scale=V3.N(0,0,0)},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  1230. Tween(Top,{Transparency=1},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  1231. Tween(Btm,{Transparency=1},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  1232. S.Debris:AddItem(Circle,timer+1)
  1233. end)()
  1234. end,
  1235. Grown = GrownEvent.Event
  1236. }
  1237.  
  1238. return Table;
  1239. end
  1240.  
  1241. function Bezier(startpos, pos2, pos3, endpos, t)
  1242. local A = startpos:lerp(pos2, t)
  1243. local B = pos2:lerp(pos3, t)
  1244. local C = pos3:lerp(endpos, t)
  1245. local lerp1 = A:lerp(B, t)
  1246. local lerp2 = B:lerp(C, t)
  1247. local cubic = lerp1:lerp(lerp2, t)
  1248. return cubic
  1249. end
  1250.  
  1251. function SphereFX(duration,color,scale,pos,endScale,increment)
  1252. return Effect{
  1253. Frames=duration,
  1254. Effect='ResizeAndFade',
  1255. Color=color,
  1256. Size=scale,
  1257. Mesh={MeshType=Enum.MeshType.Sphere},
  1258. CFrame=pos,
  1259. FXSettings={
  1260. EndSize=endScale,
  1261. EndIsIncrement=increment
  1262. }
  1263. }
  1264. end
  1265.  
  1266. function BlastFX(duration,color,scale,pos,endScale,increment)
  1267. return Effect{
  1268. Frames=duration,
  1269. Effect='ResizeAndFade',
  1270. Color=color,
  1271. Size=scale,
  1272. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  1273. CFrame=pos,
  1274. FXSettings={
  1275. EndSize=endScale,
  1276. EndIsIncrement=increment
  1277. }
  1278. }
  1279. end
  1280.  
  1281. function BlockFX(duration,color,scale,pos,endScale,increment)
  1282. return Effect{
  1283. Frames=duration,
  1284. Effect='ResizeAndFade',
  1285. Color=color,
  1286. Size=scale,
  1287. CFrame=pos,
  1288. FXSettings={
  1289. EndSize=endScale,
  1290. EndIsIncrement=increment
  1291. }
  1292. }
  1293. end
  1294.  
  1295. function ShootBullet(data)
  1296. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  1297. local Size = data.Size or V3.N(2,2,2)
  1298. local Color = data.Color or MagicVariant.EffectColor or MagicVariant.Color
  1299. local StudsPerFrame = data.Speed or 10
  1300. local Shape = data.Shape or 'Ball'
  1301. local Frames = data.Frames or 160
  1302. local Pos = data.Origin or Torso.CFrame
  1303. local Direction = data.Direction or Mouse.Hit
  1304. local Material = data.Material or Enum.Material.Neon
  1305. local OnHit = data.HitFunction or function(hit,pos)
  1306. Effect{
  1307. Effect='ResizeAndFade',
  1308. Color=Color,
  1309. Size=V3.N(10,10,10),
  1310. Mesh={MeshType=Enum.MeshType.Sphere},
  1311. CFrame=CF.N(pos),
  1312. FXSettings={
  1313. EndSize=V3.N(.05,.05,.05),
  1314. EndIsIncrement=true
  1315. }
  1316. }
  1317. for i = 1, 5 do
  1318. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1319. Effect{
  1320. Effect='Fade',
  1321. Frames=65,
  1322. Size=V3.N(5,5,10),
  1323. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  1324. Mesh = {MeshType=Enum.MeshType.Sphere},
  1325. Material=Enum.Material.Neon,
  1326. Color=Color,
  1327. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  1328. }
  1329. end
  1330. AOEDamage(pos,10,15,30,0,'Normal',10,4)
  1331. end
  1332.  
  1333. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  1334. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  1335. if(Shape == 'Ball')then
  1336. BMesh.MeshType = Enum.MeshType.Sphere
  1337. elseif(Shape == 'Head')then
  1338. BMesh.MeshType = Enum.MeshType.Head
  1339. elseif(Shape == 'Cylinder')then
  1340. BMesh.MeshType = Enum.MeshType.Cylinder
  1341. end
  1342.  
  1343. coroutine.wrap(function()
  1344. for i = 1, Frames+1 do
  1345. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  1346. if(hit)then
  1347. OnHit(hit,pos,norm,dist)
  1348. break;
  1349. else
  1350. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  1351. end
  1352. swait()
  1353. end
  1354. Bullet:destroy()
  1355. end)()
  1356.  
  1357. end
  1358.  
  1359. function Zap(data)
  1360. local sCF,eCF = data.StartCFrame,data.EndCFrame
  1361. assert(sCF,"You need a start CFrame!")
  1362. assert(eCF,"You need an end CFrame!")
  1363. local parts = data.PartCount or 15
  1364. local zapRot = data.ZapRotation or {-5,5}
  1365. local startThick = data.StartSize or 3;
  1366. local endThick = data.EndSize or startThick/2;
  1367. local color = data.Color or BrickColor.new'Electric blue'
  1368. local delay = data.Delay or 35
  1369. local delayInc = data.DelayInc or 0
  1370. local lastLightning;
  1371. local MagZ = (sCF.p - eCF.p).magnitude
  1372. local thick = startThick
  1373. local inc = (startThick/parts)-(endThick/parts)
  1374.  
  1375. for i = 1, parts do
  1376. local pos = sCF.p
  1377. if(lastLightning)then
  1378. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  1379. end
  1380. delay = delay + delayInc
  1381. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  1382. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  1383. if(parts == i)then
  1384. local MagZ = (pos-eCF.p).magnitude
  1385. zapPart.Size = V3.N(endThick,endThick,MagZ)
  1386. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  1387. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  1388. else
  1389. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  1390. end
  1391.  
  1392. lastLightning = zapPart
  1393. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  1394.  
  1395. thick=thick-inc
  1396.  
  1397. end
  1398. end
  1399.  
  1400. function Zap2(data)
  1401. local Color = data.Color or BrickColor.new'Electric blue'
  1402. local StartPos = data.Start or Torso.Position
  1403. local EndPos = data.End or Mouse.Hit.p
  1404. local SegLength = data.SegL or 2
  1405. local Thicc = data.Thickness or 0.5
  1406. local Fades = data.Fade or 45
  1407. local Parent = data.Parent or Effects
  1408. local MaxD = data.MaxDist or 200
  1409. local Branch = data.Branches or false
  1410. local Material = data.Material or Enum.Material.Neon
  1411. local Raycasts = data.Raycasts or false
  1412. local Offset = data.Offset or {0,360}
  1413. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  1414. if((StartPos-EndPos).magnitude > MaxD)then
  1415. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  1416. end
  1417. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  1418. if(Raycasts)then
  1419. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  1420. end
  1421. local segments = dist/SegLength
  1422. local model = IN("Model",Parent)
  1423. model.Name = 'Lightning'
  1424. local Last;
  1425. for i = 1, segments do
  1426. local size = (segments-i)/25
  1427. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  1428. if(AddMesh)then IN("CylinderMesh",prt) end
  1429. if(Last and math.floor(segments) == i)then
  1430. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  1431. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  1432. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  1433. elseif(not Last)then
  1434. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1435. else
  1436. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1437. end
  1438. Last = prt
  1439. if(Branch)then
  1440. local choice = M.RNG(1,7+((segments-i)*2))
  1441. if(choice == 1)then
  1442. local LastB;
  1443. for i2 = 1,M.RNG(2,5) do
  1444. local size2 = ((segments-i)/35)/i2
  1445. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  1446. if(AddMesh)then IN("CylinderMesh",prt) end
  1447. if(not LastB)then
  1448. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1449. else
  1450. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1451. end
  1452. LastB = prt
  1453. end
  1454. end
  1455. end
  1456. end
  1457. if(Fades > 0)then
  1458. coroutine.wrap(function()
  1459. for i = 1, Fades do
  1460. for _,v in next, model:children() do
  1461. if(v:IsA'BasePart')then
  1462. v.Transparency = (i/Fades)
  1463. end
  1464. end
  1465. swait()
  1466. end
  1467. model:destroy()
  1468. end)()
  1469. else
  1470. S.Debris:AddItem(model,.01)
  1471. end
  1472. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  1473. end
  1474.  
  1475. function Tween(obj,props,time,easing,direction,repeats,backwards)
  1476. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  1477. local tween = S.TweenService:Create(obj, info, props)
  1478.  
  1479. tween:Play()
  1480. end
  1481.  
  1482. function Effect(data)
  1483. local FX = data.Effect or 'ResizeAndFade'
  1484. local Parent = data.Parent or Effects
  1485. local Color = data.Color or C3.N(0,0,0)
  1486. local Size = data.Size or V3.N(1,1,1)
  1487. local MoveDir = data.MoveDirection or nil
  1488. local MeshData = data.Mesh or nil
  1489. local SndData = data.Sound or nil
  1490. local Frames = data.Frames or 45
  1491. local Manual = data.Manual or nil
  1492. local Material = data.Material or Enum.Material.Neon
  1493. local CFra = data.CFrame or Torso.CFrame
  1494. local Settings = data.FXSettings or {}
  1495. local Shape = data.Shape or Enum.PartType.Block
  1496. local Snd,Prt,Msh;
  1497. coroutine.wrap(function()
  1498. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  1499. Prt = Manual
  1500. else
  1501. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  1502. Prt.Shape = Shape
  1503. end
  1504. if(typeof(MeshData) == 'table')then
  1505. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  1506. elseif(typeof(MeshData) == 'Instance')then
  1507. Msh = MeshData:Clone()
  1508. Msh.Parent = Prt
  1509. elseif(Shape == Enum.PartType.Block)then
  1510. Msh = Mesh(Prt,Enum.MeshType.Brick)
  1511. end
  1512. if(typeof(SndData) == 'table')then
  1513. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  1514. elseif(typeof(SndData) == 'Instance')then
  1515. Snd = SndData
  1516. end
  1517. if(Snd)then
  1518. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  1519. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  1520. end
  1521. Size = (Msh and Msh.Scale or Size)
  1522. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  1523.  
  1524. local MoveSpeed = nil;
  1525. if(MoveDir)then
  1526. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  1527. end
  1528. if(FX ~= 'Arc')then
  1529. for Frame = 1, Frames do
  1530. if(FX == "Fade")then
  1531. Prt.Transparency = (Frame/Frames)
  1532. elseif(FX == "Resize")then
  1533. if(not Settings.EndSize)then
  1534. Settings.EndSize = V3.N(0,0,0)
  1535. end
  1536. if(Settings.EndIsIncrement)then
  1537. if(Msh)then
  1538. Msh.Scale = Msh.Scale + Settings.EndSize
  1539. else
  1540. Prt.Size = Prt.Size + Settings.EndSize
  1541. end
  1542. else
  1543. if(Msh)then
  1544. Msh.Scale = Msh.Scale - grow/Frames
  1545. else
  1546. Prt.Size = Prt.Size - grow/Frames
  1547. end
  1548. end
  1549. elseif(FX == "ResizeAndFade")then
  1550. if(not Settings.EndSize)then
  1551. Settings.EndSize = V3.N(0,0,0)
  1552. end
  1553. if(Settings.EndIsIncrement)then
  1554. if(Msh)then
  1555. Msh.Scale = Msh.Scale + Settings.EndSize
  1556. else
  1557. Prt.Size = Prt.Size + Settings.EndSize
  1558. end
  1559. else
  1560. if(Msh)then
  1561. Msh.Scale = Msh.Scale - grow/Frames
  1562. else
  1563. Prt.Size = Prt.Size - grow/Frames
  1564. end
  1565. end
  1566. Prt.Transparency = (Frame/Frames)
  1567. end
  1568. if(Settings.RandomizeCFrame)then
  1569. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  1570. end
  1571. if(MoveDir and MoveSpeed)then
  1572. local Orientation = Prt.Orientation
  1573. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  1574. Prt.Orientation = Orientation
  1575. end
  1576. swait()
  1577. end
  1578. Prt:destroy()
  1579. else
  1580. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  1581. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  1582. if(start and endP)then
  1583. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  1584. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  1585. for Frame = 0, 1, (Settings.Speed or 0.01) do
  1586. if(Settings.Home)then
  1587. endP = Settings.Home.CFrame
  1588. end
  1589. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  1590. end
  1591. if(Settings.RemoveOnGoal)then
  1592. Prt:destroy()
  1593. end
  1594. else
  1595. Prt:destroy()
  1596. assert(start,"You need a start position!")
  1597. assert(endP,"You need a start position!")
  1598. end
  1599. end
  1600. end)()
  1601. return Prt,Msh,Snd
  1602. end
  1603. function SoulSteal(whom)
  1604. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  1605. print(torso)
  1606. if(torso and torso:IsA'BasePart')then
  1607. local Model = Instance.new("Model",Effects)
  1608. Model.Name = whom.Name.."'s Soul"
  1609. whom:BreakJoints()
  1610. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  1611. Soul.Name = 'Head'
  1612. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  1613. Effect{
  1614. Effect="Arc",
  1615. Manual = Soul,
  1616. FXSettings={
  1617. Start=torso.CFrame,
  1618. Home = Torso,
  1619. RemoveOnGoal = true,
  1620. }
  1621. }
  1622. local lastPoint = Soul.CFrame.p
  1623.  
  1624. for i = 0, 1, 0.01 do
  1625. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1626. local mag = (lastPoint - Soul.Position).magnitude
  1627. Effect{
  1628. Effect = "Fade",
  1629. CFrame = point * CF.N(0, mag/2, 0),
  1630. Size = V3.N(.5,mag+.5,.5),
  1631. Color = Soul.BrickColor
  1632. }
  1633. lastPoint = Soul.CFrame.p
  1634. swait()
  1635. end
  1636. for i = 1, 5 do
  1637. Effect{
  1638. Effect="Fade",
  1639. Color = BrickColor.new'Really red',
  1640. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  1641. }
  1642. end
  1643. end
  1644. end
  1645.  
  1646. --// Other Functions \\ --
  1647.  
  1648. function CastRay(startPos,endPos,range,ignoreList)
  1649. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1650. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1651. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1652. end
  1653.  
  1654. function CastRayInDirection(startPos,direction,range,ignoreList)
  1655. local ray = Ray.new(startPos,direction*range)
  1656. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1657. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1658. end
  1659.  
  1660. function getRegion(point,range,ignore)
  1661. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1662. end
  1663.  
  1664. function clerp(startCF,endCF,alpha)
  1665. return startCF:lerp(endCF, alpha)
  1666. end
  1667.  
  1668. function GetTorso(char)
  1669. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1670. end
  1671.  
  1672. function ShowDamage(Pos, Text, Time, Color)
  1673. coroutine.wrap(function()
  1674. local Rate = (1 / Frame_Speed)
  1675. local Pos = (Pos or Vector3.new(0, 0, 0))
  1676. local Text = (Text or "")
  1677. local Time = (Time or 2)
  1678. local Color = (Color or Color3.new(1, 0, 1))
  1679. local EffectPart = NewInstance("Part",Effects,{
  1680. Material=Enum.Material.SmoothPlastic,
  1681. Reflectance = 0,
  1682. Transparency = 1,
  1683. BrickColor = BrickColor.new(Color),
  1684. Name = "Effect",
  1685. Size = Vector3.new(0,0,0),
  1686. Anchored = true,
  1687. CFrame = CF.N(Pos)
  1688. })
  1689. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1690. Size = UDim2.new(1.25, 0, 1.25, 0),
  1691. Adornee = EffectPart,
  1692. })
  1693. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1694. BackgroundTransparency = 1,
  1695. Size = UDim2.new(1, 0, 1, 0),
  1696. Text = Text,
  1697. Font = "Bodoni",
  1698. TextColor3 = Color,
  1699. TextStrokeColor3 = Color3.new(0,0,0),
  1700. TextStrokeTransparency=0,
  1701. TextScaled = true,
  1702. })
  1703. S.Debris:AddItem(EffectPart, (Time))
  1704. EffectPart.Parent = workspace
  1705. delay(0, function()
  1706. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1707. local Frames = (Time / Rate)
  1708. for Frame = 1, Frames do
  1709. swait()
  1710. local Percent = (Frame / Frames)
  1711. TextLabel.TextTransparency = Percent
  1712. TextLabel.TextStrokeTransparency = Percent
  1713. end
  1714. if EffectPart and EffectPart.Parent then
  1715. EffectPart:Destroy()
  1716. end
  1717. end) end)()
  1718. end
  1719.  
  1720.  
  1721. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  1722. if(who)then
  1723. local hum = who:FindFirstChildOfClass'Humanoid'
  1724. local Damage = M.RNG(minDam,maxDam)
  1725. local canHit = true
  1726. if(hum)then
  1727. for _, p in pairs(Hit) do
  1728. if p[1] == hum then
  1729. if(time() - p[2] < 0.01) then
  1730. canHit = false
  1731. else
  1732. Hit[_] = nil
  1733. end
  1734. end
  1735. end
  1736. if(canHit)then
  1737. table.insert(Hit,{hum,time()})
  1738. if(hum.Health >= math.huge)then
  1739. who:BreakJoints()
  1740. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1741. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 1.5, C3.N(1,0,0))
  1742. end
  1743. else
  1744. local player = S.Players:GetPlayerFromCharacter(who)
  1745. if(Type == "Fire")then
  1746. --idk..
  1747. else
  1748. local c = Instance.new("ObjectValue",hum)
  1749. c.Name = "creator"
  1750. c.Value = Plr
  1751. game:service'Debris':AddItem(c,0.35)
  1752. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  1753. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1754. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  1755. end
  1756. hum.Health = hum.Health - Damage*(critMult or 2)
  1757. else
  1758. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1759. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), Damage, 1.5, DamageColor.Color)
  1760. end
  1761. hum.Health = hum.Health - Damage
  1762. end
  1763. if(Type == 'Knockback' and GetTorso(who))then
  1764. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  1765. local body = NewInstance('BodyVelocity',GetTorso(who),{
  1766. P = 500,
  1767. maxForce = V3.N(math.huge,0,math.huge),
  1768. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  1769. })
  1770. game:service'Debris':AddItem(body,.5)
  1771. elseif(Type == "Electric")then
  1772. if(M.RNG(1,100) >= critChance)then
  1773. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1774. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 1.5, BrickColor.new"New Yeller".Color)
  1775. end
  1776. local asd = hum.WalkSpeed/2
  1777. hum.WalkSpeed = asd
  1778. local paralyzed = true
  1779. coroutine.wrap(function()
  1780. while paralyzed do
  1781. swait(25)
  1782. if(M.RNG(1,25) == 1)then
  1783. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1784. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 1.5, BrickColor.new"New Yeller".Color)
  1785. end
  1786. hum.PlatformStand = true
  1787. end
  1788. end
  1789. end)()
  1790. delay(4, function()
  1791. paralyzed = false
  1792. hum.WalkSpeed = hum.WalkSpeed + asd
  1793. end)
  1794. end
  1795.  
  1796. elseif(Type == 'Knockdown' and GetTorso(who))then
  1797. local rek = GetTorso(who)
  1798. hum.PlatformStand = true
  1799. delay(1,function()
  1800. hum.PlatformStand = false
  1801. end)
  1802. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  1803. local bodvol = NewInstance("BodyVelocity",rek,{
  1804. velocity = angle * Knock,
  1805. P = 5000,
  1806. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1807. })
  1808. local rl = NewInstance("BodyAngularVelocity",rek,{
  1809. P = 3000,
  1810. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1811. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1812. })
  1813. game:GetService("Debris"):AddItem(bodvol, .5)
  1814. game:GetService("Debris"):AddItem(rl, .5)
  1815. end
  1816. end
  1817. end
  1818. end
  1819. end
  1820. end
  1821. end
  1822.  
  1823. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  1824. for _,v in next, getRegion(where,range,{Char}) do
  1825. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  1826. coroutine.wrap(function() for i = 1, M.RNG(minDam,maxDam) do swait() DealDamage(v.Parent,1,1,Knock,Type,0,1) end end)()
  1827. end
  1828. end
  1829. end
  1830.  
  1831. function AOEHeal(where,range,amount)
  1832. local healed = {}
  1833. for _,v in next, getRegion(where,range,{Char}) do
  1834. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1835. if(hum and not healed[hum])then
  1836. hum.Health = hum.Health + amount
  1837. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1838. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  1839. end
  1840. end
  1841. end
  1842. end
  1843.  
  1844. function CamShake(who,times,intense,origin)
  1845. coroutine.wrap(function()
  1846. if(script:FindFirstChild'CamShake')then
  1847. local cam = script.CamShake:Clone()
  1848. cam:WaitForChild'intensity'.Value = intense
  1849. cam:WaitForChild'times'.Value = times
  1850.  
  1851. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  1852. cam.Parent = who
  1853. wait()
  1854. cam.Disabled = false
  1855. elseif(who == Plr or who == Char)then
  1856. local intensity = intense
  1857. local cam = workspace.CurrentCamera
  1858. for i = 1, times do
  1859. local camDistFromOrigin
  1860. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  1861. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  1862. elseif(typeof(origin) == 'Vector3')then
  1863. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  1864. end
  1865. if(camDistFromOrigin)then
  1866. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  1867. end
  1868. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  1869. swait()
  1870. end
  1871. end
  1872. end)()
  1873. end
  1874.  
  1875. function CamShakeAll(times,intense,origin)
  1876. for _,v in next, Plrs:players() do
  1877. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  1878. end
  1879. end
  1880.  
  1881. function ServerScript(code)
  1882. if(script:FindFirstChild'Loadstring')then
  1883. local load = script.Loadstring:Clone()
  1884. load:WaitForChild'Sauce'.Value = code
  1885. load.Disabled = false
  1886. load.Parent = workspace
  1887. elseif(NS and typeof(NS) == 'function')then
  1888. NS(code,workspace)
  1889. else
  1890. warn("no serverscripts lol")
  1891. end
  1892. end
  1893.  
  1894. function LocalOnPlayer(who,code)
  1895. ServerScript([[
  1896. wait()
  1897. script.Parent=nil
  1898. if(not _G.Http)then _G.Http = game:service'HttpService' end
  1899.  
  1900. local Http = _G.Http or game:service'HttpService'
  1901.  
  1902. local source = ]].."[["..code.."]]"..[[
  1903. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  1904. local asd = Http:PostAsync(link,source)
  1905. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  1906. local ID = Http:JSONDecode(asd).Result.Require_ID
  1907. local vs = require(ID).VORTH_SCRIPT
  1908. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  1909. ]])
  1910. end
  1911.  
  1912.  
  1913. --// Attack Functions \\--
  1914. function Laser(key)
  1915. NeutralAnims = false
  1916. Attack = true
  1917. Root.Anchored = true
  1918. local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-4),Size=5,Variant=MagicVariant,Time=.5}
  1919. local IsGrown = false
  1920. data.Grown:connect(function() IsGrown = true end)
  1921. repeat swait()
  1922. local Alpha = .1
  1923. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(125),0,0),Alpha)
  1924. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(125),0,0),Alpha)
  1925. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1926. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1927. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1928. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1929. local LookVector = Mouse.Hit.p
  1930. Torso.CFrame = CF.N(Root.Position,LookVector)
  1931. until IsGrown
  1932. if(S.UserInputService:IsKeyDown(key))then
  1933. local grown = 0
  1934. repeat
  1935. local Alpha = .1
  1936. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(125),0,0),Alpha)
  1937. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(125),0,0),Alpha)
  1938. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1939. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1940. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1941. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1942. local LookVector = Mouse.Hit.p
  1943. Root.CFrame = CF.N(Root.Position,LookVector)
  1944. if(grown < 250)then
  1945. data.Grow(.05)
  1946. grown = grown + 1
  1947. end
  1948. swait()
  1949. until not S.UserInputService:IsKeyDown(key)
  1950. end
  1951. Sound(data.Circle,340722848,1,1,false,true,true)
  1952. local hit,pos,norm,dist = CastRay(data.Circle.CFrame.p,Mouse.Hit.p,1024)
  1953. local part = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data.Mesh.Scale.x/40,data.Mesh.Scale.x/40),CF.N(data.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  1954. Mesh(part,Enum.MeshType.Cylinder)
  1955. Tween(part,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  1956. Effect{
  1957. Effect='ResizeAndFade',
  1958. Color=MagicVariant.Color,
  1959. Size=V3.N(data.Mesh.Scale.X/20,data.Mesh.Scale.X/20,data.Mesh.Scale.X/20),
  1960. Mesh={MeshType=Enum.MeshType.Sphere},
  1961. CFrame=CF.N(pos),
  1962. FXSettings={
  1963. EndSize=V3.N(.05,.05,.05),
  1964. EndIsIncrement=true
  1965. }
  1966. }
  1967. for i = 1, 5 do
  1968. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1969. Effect{
  1970. Effect='Fade',
  1971. Frames=65,
  1972. Size=V3.N((data.Mesh.Scale.X/20)/2,(data.Mesh.Scale.X/20)/2,data.Mesh.Scale.X/20),
  1973. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data.Mesh.Scale.X/20)).p,pos),
  1974. Mesh = {MeshType=Enum.MeshType.Sphere},
  1975. Material=Enum.Material.Neon,
  1976. Color=MagicVariant.Color,
  1977. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  1978. }
  1979. end
  1980. AOEDamage(pos,data.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
  1981. coroutine.wrap(function()
  1982. local frame = (1/30)
  1983. for i = 1, 30 do
  1984. part.Transparency = (i/30)
  1985. swait()
  1986. end
  1987. part:destroy()
  1988. end)()
  1989. Attack = false
  1990. NeutralAnims = true
  1991. Root.Anchored = false
  1992. data.Destroy()
  1993. end
  1994.  
  1995. function Balls(key)
  1996. NeutralAnims = false
  1997. Attack = true
  1998. Root.Anchored = true
  1999. local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-1),Size=5,Variant=MagicVariant,Time=.5}
  2000. local IsGrown = false
  2001. data.Grown:connect(function() IsGrown = true end)
  2002. repeat swait()
  2003. local Alpha = .1
  2004. local idk = M.R(25)
  2005. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2006. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2007. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  2008. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2009. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2010. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2011. local LookVector = Mouse.Hit.p
  2012. Torso.CFrame = CF.N(Root.Position,LookVector)
  2013. until IsGrown
  2014. local projectiles = 5
  2015. if(S.UserInputService:IsKeyDown(key))then
  2016. local grown = 0
  2017. repeat
  2018. local Alpha = .1
  2019. local idk = M.R(25)
  2020. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2021. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2022. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  2023. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2024. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2025. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2026. local LookVector = Mouse.Hit.p
  2027. Root.CFrame = CF.N(Root.Position,LookVector)
  2028. if(grown < 250)then
  2029. data.Grow(.05)
  2030. grown = grown + 1
  2031. projectiles = projectiles + .05
  2032. end
  2033. swait()
  2034. until not S.UserInputService:IsKeyDown(key)
  2035. end
  2036. for i = 1, math.floor(projectiles) do
  2037. data.Grow(-math.floor(projectiles)/20)
  2038. local LookVector = Mouse.Hit.p
  2039. Root.CFrame = CF.N(Root.Position,LookVector)
  2040. ShootBullet{Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  2041. swait(1)
  2042. end
  2043.  
  2044. Attack = false
  2045. NeutralAnims = true
  2046. Root.Anchored = false
  2047. data.Destroy()
  2048. end
  2049.  
  2050. function DLaser(key)
  2051. NeutralAnims = false
  2052. Attack = true
  2053. Root.Anchored = true
  2054. local data1 = MagicCircle{Weld=Torso,Pos=CF.N(-4,0,-4),Size=5,Variant=MagicVariant,Time=.5}
  2055. local data2 = MagicCircle{Weld=Torso,Pos=CF.N(4,0,-4),Size=5,Variant=MagicVariant,Time=.5}
  2056. local IsGrown = false
  2057. data1.Grown:connect(function() IsGrown = true end)
  2058. repeat swait()
  2059. local Alpha = .1
  2060. local idk = M.R(25)
  2061. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2062. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2063. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  2064. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2065. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2066. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2067. local LookVector = Mouse.Hit.p
  2068. Torso.CFrame = CF.N(Root.Position,LookVector)
  2069. until IsGrown
  2070. if(S.UserInputService:IsKeyDown(key))then
  2071. local grown = 0
  2072. repeat
  2073. local Alpha = .1
  2074. local idk = M.R(25)
  2075. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2076. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2077. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  2078. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2079. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2080. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2081. local LookVector = Mouse.Hit.p
  2082. Root.CFrame = CF.N(Root.Position,LookVector)
  2083. if(grown < 250)then
  2084. data1.Grow(.05)
  2085. data2.Grow(.05)
  2086. grown = grown + 1
  2087. end
  2088. swait()
  2089. until not S.UserInputService:IsKeyDown(key)
  2090. end
  2091. Sound(data1.Circle,340722848,1,1,false,true,true)
  2092. Sound(data2.Circle,340722848,1,1,false,true,true)
  2093. local hit,pos,norm,dist = CastRay(data1.Circle.CFrame.p,Mouse.Hit.p,1024)
  2094. local part1 = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data1.Mesh.Scale.x/40,data1.Mesh.Scale.x/40),CF.N(data1.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  2095. Mesh(part1,Enum.MeshType.Cylinder)
  2096.  
  2097.  
  2098. local part2 = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data2.Mesh.Scale.x/40,data2.Mesh.Scale.x/40),CF.N(data2.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  2099. Mesh(part2,Enum.MeshType.Cylinder)
  2100. Tween(part1,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  2101. Tween(part2,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  2102. Effect{
  2103. Effect='ResizeAndFade',
  2104. Color=MagicVariant.Color,
  2105. Size=V3.N(data1.Mesh.Scale.X/20,data1.Mesh.Scale.X/20,data1.Mesh.Scale.X/20),
  2106. Mesh={MeshType=Enum.MeshType.Sphere},
  2107. CFrame=CF.N(pos),
  2108. FXSettings={
  2109. EndSize=V3.N(.05,.05,.05),
  2110. EndIsIncrement=true
  2111. }
  2112. }
  2113. for i = 1, 5 do
  2114. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  2115. Effect{
  2116. Effect='Fade',
  2117. Frames=65,
  2118. Size=V3.N((data1.Mesh.Scale.X/20)/2,(data1.Mesh.Scale.X/20)/2,data1.Mesh.Scale.X/20),
  2119. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data1.Mesh.Scale.X/20)).p,pos),
  2120. Mesh = {MeshType=Enum.MeshType.Sphere},
  2121. Material=Enum.Material.Neon,
  2122. Color=MagicVariant.Color,
  2123. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  2124. }
  2125. end
  2126. AOEDamage(pos,data1.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
  2127. AOEDamage(pos,data2.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
  2128. coroutine.wrap(function()
  2129. local frame = (1/30)
  2130. for i = 1, 30 do
  2131. part1.Transparency = (i/30)
  2132. part2.Transparency = (i/30)
  2133. swait()
  2134. end
  2135. part1:destroy()
  2136. part2:destroy()
  2137. end)()
  2138. Attack = false
  2139. NeutralAnims = true
  2140. Root.Anchored = false
  2141. data1.Destroy()
  2142. data2.Destroy()
  2143. end
  2144.  
  2145.  
  2146. function BLaser(key)
  2147. NeutralAnims = false
  2148. Attack = true
  2149. Root.Anchored = true
  2150. local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-1),Size=15,Variant=MagicVariant,Time=.75}
  2151. local IsGrown = false
  2152. data.Grown:connect(function() IsGrown = true end)
  2153. repeat swait()
  2154. local Alpha = .1
  2155. local idk = M.R(25)
  2156. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2157. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2158. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  2159. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2160. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2161. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2162. local LookVector = Mouse.Hit.p
  2163. Torso.CFrame = CF.N(Root.Position,LookVector)
  2164. until IsGrown
  2165. if(S.UserInputService:IsKeyDown(key))then
  2166. local grown = 0
  2167. repeat
  2168. local Alpha = .1
  2169. local idk = M.R(25)
  2170. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2171. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2172. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  2173. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2174. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2175. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2176. local LookVector = Mouse.Hit.p
  2177. Root.CFrame = CF.N(Root.Position,LookVector)
  2178. swait()
  2179. until not S.UserInputService:IsKeyDown(key)
  2180. end
  2181.  
  2182. local hit,pos,norm,dist = CastRay(data.Circle.CFrame.p,Mouse.Hit.p,1024)
  2183. local part = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data.Mesh.Scale.x/40,data.Mesh.Scale.x/40),CF.N(data.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  2184. Mesh(part,Enum.MeshType.Cylinder)
  2185. Tween(part,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  2186. local aa = data.Circle:Clone();
  2187. aa.Parent = Effects
  2188. aa.Anchored = true
  2189. local blast = Sound(aa,334702766,1,5,false,true,true)
  2190. data.Circle:destroy()
  2191. if(not blast.IsLoaded)then repeat swait() until blast.IsLoaded end
  2192. Effect{
  2193. Effect='ResizeAndFade',
  2194. Color=MagicVariant.Color,
  2195. Size=V3.N(data.Mesh.Scale.X/20,data.Mesh.Scale.X/20,data.Mesh.Scale.X/20),
  2196. Mesh={MeshType=Enum.MeshType.Sphere},
  2197. CFrame=CF.N(pos),
  2198. Sound=blast,
  2199. FXSettings={
  2200. EndSize=V3.N(.05,.05,.05),
  2201. EndIsIncrement=true
  2202. }
  2203. }
  2204. for i = 1, 5 do
  2205. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  2206. Effect{
  2207. Effect='Fade',
  2208. Frames=65,
  2209. Sound=blast,
  2210. Size=V3.N((data.Mesh.Scale.X/20)/2,(data.Mesh.Scale.X/20)/2,data.Mesh.Scale.X/20),
  2211. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data.Mesh.Scale.X/20)).p,pos),
  2212. Mesh = {MeshType=Enum.MeshType.Sphere},
  2213. Material=Enum.Material.Neon,
  2214. Color=MagicVariant.Color,
  2215. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  2216. }
  2217. end
  2218. AOEDamage(pos,data.Mesh.Scale.X/20,45,75,0,'Normal',10,4)
  2219. coroutine.wrap(function()
  2220. for i = 1, (blast.TimeLength*Frame_Speed) do
  2221. part.Transparency = (i/(blast.TimeLength*Frame_Speed))
  2222. for _,v in next, aa:children() do if v:IsA'Decal' then v.Transparency = (i/(blast.TimeLength*Frame_Speed)) end end
  2223. swait()
  2224. end
  2225. aa:destroy()
  2226. part:destroy()
  2227. end)()
  2228.  
  2229. Attack = false
  2230. NeutralAnims = true
  2231. Root.Anchored = false
  2232. Root.Velocity = Mouse.Hit.lookVector*-125
  2233. end
  2234.  
  2235. function Skill1()
  2236. Laser(Enum.KeyCode.Q)
  2237. end
  2238.  
  2239. function Skill2()
  2240. DLaser(Enum.KeyCode.Z)
  2241. end
  2242.  
  2243. function Skill3()
  2244. BLaser(Enum.KeyCode.X)
  2245. end
  2246.  
  2247. --// Wrap it all up \\--
  2248.  
  2249. Mouse.KeyDown:connect(function(k)
  2250. if(Attack)then return end
  2251. if(k == 'q')then Skill1() end
  2252. if(k == 'z')then Skill2() end
  2253. if(k == 'x')then Skill3() end
  2254. end)
  2255.  
  2256. Plr.Chatted:connect(function(m)
  2257.  
  2258. if(m:sub(1,3) == '/e ')then
  2259. local msg = m:sub(4)
  2260. --emote commands (gotta do)
  2261. end
  2262. end)
  2263. while true do
  2264. swait()
  2265. Sine = Sine + Change
  2266.  
  2267. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4)), Char)
  2268.  
  2269. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  2270. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed > 24 and "Run" or "Walk") or hitfloor and "Idle")
  2271. if(not Effects or not Effects.Parent)then
  2272. Effects = IN("Model",Char)
  2273. Effects.Name = "Effects"
  2274. end
  2275. if(State == 'Run')then
  2276. local wsVal = 20 / (Hum.WalkSpeed/16)
  2277. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  2278. Change = 3
  2279. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  2280. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  2281. elseif(State == 'Walk')then
  2282. local wsVal = 20 / (Hum.WalkSpeed/16)
  2283. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  2284. Change = 3
  2285. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  2286. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  2287. else
  2288. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  2289. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  2290. end
  2291.  
  2292. Hum.WalkSpeed = WalkSpeed
  2293.  
  2294. if(NeutralAnims)then
  2295. if(State == 'Idle')then
  2296. local Alpha = .1
  2297. Change = .75
  2298. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0+.2*M.C(Sine/12),.2*M.C(Sine/6),0)*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
  2299. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
  2300. LS.C0 = LS.C0:lerp(LSC0*CF.N(.25,0,0)*CF.A(M.R(-45),0,M.R(45+5*M.C(Sine/12))),Alpha)
  2301. RS.C0 = RS.C0:lerp(RSC0*CF.N(-.25,0,0)*CF.A(M.R(-45),0,M.R(-45-5*M.C(Sine/12))),Alpha)
  2302. LH.C0 = LH.C0:lerp(LHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(10),0),Alpha)
  2303. RH.C0 = RH.C0:lerp(RHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(-10),0),Alpha)
  2304. -- idle
  2305. elseif(State == 'Run')then
  2306. local wsVal = 20 / (Hum.WalkSpeed/16)
  2307. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  2308. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  2309. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2310. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  2311. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  2312. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  2313. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  2314. elseif(State == 'Walk')then
  2315. local wsVal = 20 / (Hum.WalkSpeed/16)
  2316. local Alpha = math.min(.3 * (Hum.WalkSpeed/16),1)
  2317. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  2318. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  2319. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
  2320. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.22*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
  2321. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  2322. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  2323. elseif(State == 'Jump')then
  2324. local Alpha = .1
  2325. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  2326. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  2327. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  2328. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  2329. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  2330. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2331. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2332. elseif(State == 'Fall')then
  2333. local Alpha = .1
  2334. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  2335. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  2336. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  2337. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  2338. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  2339. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  2340. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  2341. elseif(State == 'Paralyzed')then
  2342. -- paralyzed
  2343. elseif(State == 'Sit')then
  2344. -- sit
  2345. end
  2346. end
  2347.  
  2348. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement