Advertisement
Guest User

sonic script edit LELECKSDEE

a guest
May 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.65 KB | None | 0 0
  1. -- [ SANIIIC HES ON DA RAWN ] --
  2.  
  3. --Edit by EnderStrife--
  4.  
  5.  
  6. wait()
  7. thing = 0
  8. LoudVolume = false
  9. Submerged = false
  10. Music = true
  11. script.Name = "SANIIIIC"
  12. Player = game.Players.LocalPlayer
  13. c = game.Players.LocalPlayer.Character
  14. Head = c.Head
  15. Humanoid = c.Humanoid
  16. anim = c.Humanoid.Animator
  17. rage = false
  18. p = game.Players.LocalPlayer
  19. Music = false
  20. anim = Humanoid.Animator
  21. local Effects = {}
  22. attack = false
  23. local attacking = false
  24. vt = Vector3.new
  25. bc = BrickColor.new
  26. br = BrickColor.random
  27. it = Instance.new
  28. cf = CFrame.new
  29. euler = CFrame.fromEulerAnglesXYZ
  30. angles = CFrame.Angles
  31. matr = math.random
  32. mouse = Player:GetMouse()
  33.  
  34. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  36. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  37. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  38. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  39. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  40. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  41. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  42. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  43. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  44. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  45. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  46. RS = c.Torso:FindFirstChild("Right Shoulder")
  47. LS = c.Torso:FindFirstChild("Left Shoulder")
  48. RH = c.Torso:FindFirstChild("Right Hip")
  49. LH = c.Torso:FindFirstChild("Left Hip")
  50. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  51. N = c.Torso:FindFirstChild("Neck")
  52. cf = CFrame.new
  53. ang = CFrame.Angles
  54. rd = math.rad
  55. rd2 = math.random
  56.  
  57. --[[mainShirt = c.Shirt
  58. mainPants = c.Pants
  59. mainBColors = c["Body Colors"]
  60. mainShirt.ShirtTemplate = "rbxassetid://769869277"
  61. mainPants.PantsTemplate = "rbxassetid://805486769"
  62. mainBColors.HeadColor = BrickColor.new("Pastel brown")
  63. mainBColors.LeftArmColor = BrickColor.new("Pastel brown")
  64. mainBColors.LeftLegColor = BrickColor.new("Pastel brown")
  65. mainBColors.RightArmColor = BrickColor.new("Pastel brown")
  66. mainBColors.RightLegColor = BrickColor.new("Pastel brown")
  67. mainBColors.TorsoColor = BrickColor.new("Pastel brown")]]
  68. function swait(num)
  69. if num==0 or num==nil then
  70. game:service'RunService'.Heartbeat:wait(0)
  71. else
  72. for i=0,num do
  73. game:service'RunService'.Heartbeat:wait(0)
  74. end
  75. end
  76. end
  77.  
  78. function lerpz(joint, prop, cfrmz, alp)
  79. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  80. end
  81. function resetlerp()
  82. RJ.C0 = RJC0
  83. RJ.C1 = RJC1
  84. N.C0 = NC0
  85. N.C1 = NC1
  86. RS.C0 = RSC0
  87. RS.C1 = RSC1
  88. LS.C0 = LSC0
  89. LS.C1 = LSC1
  90. RH.C0 = RHC0
  91. RH.C1 = RHC1
  92. LH.C0 = LHC0
  93. LH.C1 = LHC1
  94. end
  95.  
  96. local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://654094806" S2.Volume = 0 S2.PlaybackSpeed = 0 S2.Looped = true S2:Play()
  97. c.Head.face:remove()
  98.  
  99. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(255/255,170/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(255/255,170/255,0/255))}
  100. local att1 = Instance.new("Attachment", c["Right Leg"])
  101. att1.Name = "att1"
  102. att1.Position = Vector3.new(0.5, 1, 0.5)
  103. local att2 = Instance.new("Attachment", c["Right Leg"])
  104. att2.Name = "att2"
  105. att2.Position = Vector3.new(-0.5, 1, 0.5)
  106. local att3 = Instance.new("Attachment", c["Right Leg"])
  107. att3.Name = "att3"
  108. att3.Position = Vector3.new(0.5, -1, 0.5)
  109. local att4 = Instance.new("Attachment", c["Right Leg"])
  110. att4.Name = "att4"
  111. att4.Position = Vector3.new(-0.5, -1, 0.5)
  112.  
  113. local attt1 = Instance.new("Attachment", c["Left Leg"])
  114. attt1.Name = "att1"
  115. attt1.Position = Vector3.new(0.5, 1, 0.5)
  116. local attt2 = Instance.new("Attachment", c["Left Leg"])
  117. attt2.Name = "att2"
  118. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  119. local attt3 = Instance.new("Attachment", c["Left Leg"])
  120. attt3.Name = "att3"
  121. attt3.Position = Vector3.new(0.5, -1, 0.5)
  122. local attt4 = Instance.new("Attachment", c["Left Leg"])
  123. attt4.Name = "att4"
  124. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  125.  
  126. local trailtop1 = Instance.new("Trail", c["Right Leg"])
  127. trailtop1.Enabled = true
  128. trailtop1.Texture = "rbxassetid://16607923"
  129. trailtop1.Name = "toptrail"
  130. trailtop1.MinLength = 0
  131. trailtop1.Lifetime = 0.1
  132.  
  133. trailtop1.Color = ColorSequence.new(ColorArray)
  134.  
  135. trailtop1.Attachment0 = att1
  136. trailtop1.Attachment1 = att2
  137. trailtop1.Transparency = NumberSequence.new({
  138. NumberSequenceKeypoint.new(0, 0.5, 0),
  139. NumberSequenceKeypoint.new(1, 1, 0)
  140. })
  141.  
  142. local trailbot1 = Instance.new("Trail", c["Right Leg"])
  143. trailbot1.Enabled = true
  144. trailbot1.Texture = "rbxassetid://16607923"
  145. trailbot1.Name = "bottrail"
  146. trailbot1.MinLength = 0
  147. trailbot1.Lifetime = 0.1
  148.  
  149. trailbot1.Color = ColorSequence.new(ColorArray)
  150.  
  151. trailbot1.Attachment0 = att3
  152. trailbot1.Attachment1 = att4
  153. trailbot1.Transparency = NumberSequence.new({
  154. NumberSequenceKeypoint.new(0, 0.5, 0),
  155. NumberSequenceKeypoint.new(1, 1, 0)
  156. })
  157.  
  158. local trailside1 = Instance.new("Trail", c["Right Leg"])
  159. trailside1.Enabled = true
  160. trailside1.Texture = "rbxassetid://16607923"
  161. trailside1.Name = "sidetrail1"
  162. trailside1.MinLength = 0
  163. trailside1.Lifetime = 0.1
  164.  
  165. trailside1.Color = ColorSequence.new(ColorArray)
  166.  
  167. trailside1.Attachment0 = att1
  168. trailside1.Attachment1 = att3
  169. trailside1.Transparency = NumberSequence.new({
  170. NumberSequenceKeypoint.new(0, 0.5, 0),
  171. NumberSequenceKeypoint.new(1, 1, 0)
  172. })
  173.  
  174. local trailside2 = Instance.new("Trail", c["Right Leg"])
  175. trailside2.Enabled = true
  176. trailside2.Texture = "rbxassetid://16607923"
  177. trailside2.Name = "sidetrail2"
  178. trailside2.MinLength = 0
  179. trailside2.Lifetime = 0.1
  180. spawn(function()
  181. while true do wait()
  182. trailside2.Color = ColorSequence.new(ColorArray)
  183. end
  184. end)
  185. trailside2.Attachment0 = att2
  186. trailside2.Attachment1 = att4
  187. trailside2.Transparency = NumberSequence.new({
  188. NumberSequenceKeypoint.new(0, 0.5, 0),
  189. NumberSequenceKeypoint.new(1, 1, 0)
  190. })
  191.  
  192.  
  193. local trailtop12 = Instance.new("Trail", c["Left Leg"])
  194. trailtop12.Enabled = true
  195. trailtop12.Texture = "rbxassetid://16607923"
  196. trailtop12.Name = "toptrail"
  197. trailtop12.MinLength = 0
  198. trailtop12.Lifetime = 0.1
  199. spawn(function()
  200. while true do wait()
  201. trailtop12.Color = ColorSequence.new(ColorArray)
  202. end
  203. end)
  204. trailtop12.Attachment0 = attt1
  205. trailtop12.Attachment1 = attt2
  206. trailtop12.Transparency = NumberSequence.new({
  207. NumberSequenceKeypoint.new(0, 0.5, 0),
  208. NumberSequenceKeypoint.new(1, 1, 0)
  209. })
  210.  
  211. local trailbot2 = Instance.new("Trail", c["Left Leg"])
  212. trailbot2.Enabled = true
  213. trailbot2.Texture = "rbxassetid://16607923"
  214. trailbot2.Name = "bottrail"
  215. trailbot2.MinLength = 0
  216. trailbot2.Lifetime = 0.1
  217.  
  218. trailbot2.Color = ColorSequence.new(ColorArray)
  219.  
  220. trailbot2.Attachment0 = attt3
  221. trailbot2.Attachment1 = attt4
  222. trailbot2.Transparency = NumberSequence.new({
  223. NumberSequenceKeypoint.new(0, 0.5, 0),
  224. NumberSequenceKeypoint.new(1, 1, 0)
  225. })
  226.  
  227. local trailside12 = Instance.new("Trail", c["Left Leg"])
  228. trailside12.Enabled = true
  229. trailside12.Texture = "rbxassetid://16607923"
  230. trailside12.Name = "sidetrail1"
  231. trailside12.MinLength = 0
  232. trailside12.Lifetime = 0.1
  233.  
  234. trailside12.Color = ColorSequence.new(ColorArray)
  235.  
  236. trailside12.Attachment0 = attt1
  237. trailside12.Attachment1 = attt3
  238. trailside12.Transparency = NumberSequence.new({
  239. NumberSequenceKeypoint.new(0, 0.5, 0),
  240. NumberSequenceKeypoint.new(1, 1, 0)
  241. })
  242.  
  243. local trailside22 = Instance.new("Trail", c["Left Leg"])
  244. trailside22.Enabled = true
  245. trailside22.Texture = "rbxassetid://16607923"
  246. trailside22.Name = "sidetrail2"
  247. trailside22.MinLength = 0
  248. trailside22.Lifetime = 0.1
  249.  
  250. trailside22.Color = ColorSequence.new(ColorArray)
  251.  
  252. trailside22.Attachment0 = attt2
  253. trailside22.Attachment1 = attt4
  254. trailside22.Transparency = NumberSequence.new({
  255. NumberSequenceKeypoint.new(0, 0.5, 0),
  256. NumberSequenceKeypoint.new(1, 1, 0)
  257. })
  258.  
  259.  
  260. local att1 = Instance.new("Attachment", c["Right Arm"])
  261. att1.Name = "att1"
  262. att1.Position = Vector3.new(0.5, 1, 0.5)
  263. local att2 = Instance.new("Attachment", c["Right Arm"])
  264. att2.Name = "att2"
  265. att2.Position = Vector3.new(-0.5, 1, 0.5)
  266. local att3 = Instance.new("Attachment", c["Right Arm"])
  267. att3.Name = "att3"
  268. att3.Position = Vector3.new(0.5, -1, 0.5)
  269. local att4 = Instance.new("Attachment", c["Right Arm"])
  270. att4.Name = "att4"
  271. att4.Position = Vector3.new(-0.5, -1, 0.5)
  272.  
  273. local attt1 = Instance.new("Attachment", c["Left Arm"])
  274. attt1.Name = "att1"
  275. attt1.Position = Vector3.new(0.5, 1, 0.5)
  276. local attt2 = Instance.new("Attachment", c["Left Arm"])
  277. attt2.Name = "att2"
  278. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  279. local attt3 = Instance.new("Attachment", c["Left Arm"])
  280. attt3.Name = "att3"
  281. attt3.Position = Vector3.new(0.5, -1, 0.5)
  282. local attt4 = Instance.new("Attachment", c["Left Arm"])
  283. attt4.Name = "att4"
  284. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  285.  
  286. local trailtop1 = Instance.new("Trail", c["Right Arm"])
  287. trailtop1.Enabled = true
  288. trailtop1.Texture = "rbxassetid://16607923"
  289. trailtop1.Name = "toptrail"
  290. trailtop1.MinLength = 0
  291. trailtop1.Lifetime = 0.1
  292.  
  293. trailtop1.Color = ColorSequence.new(ColorArray)
  294.  
  295. trailtop1.Attachment0 = att1
  296. trailtop1.Attachment1 = att2
  297. trailtop1.Transparency = NumberSequence.new({
  298. NumberSequenceKeypoint.new(0, 0.5, 0),
  299. NumberSequenceKeypoint.new(1, 1, 0)
  300. })
  301.  
  302. local trailbot1 = Instance.new("Trail", c["Right Arm"])
  303. trailbot1.Enabled = true
  304. trailbot1.Texture = "rbxassetid://16607923"
  305. trailbot1.Name = "bottrail"
  306. trailbot1.MinLength = 0
  307. trailbot1.Lifetime = 0.1
  308. spawn(function()
  309. while true do wait()
  310. trailbot1.Color = ColorSequence.new(ColorArray)
  311. end
  312. end)
  313. trailbot1.Attachment0 = att3
  314. trailbot1.Attachment1 = att4
  315. trailbot1.Transparency = NumberSequence.new({
  316. NumberSequenceKeypoint.new(0, 0.5, 0),
  317. NumberSequenceKeypoint.new(1, 1, 0)
  318. })
  319.  
  320. local trailside1 = Instance.new("Trail", c["Right Arm"])
  321. trailside1.Enabled = true
  322. trailside1.Texture = "rbxassetid://16607923"
  323. trailside1.Name = "sidetrail1"
  324. trailside1.MinLength = 0
  325. trailside1.Lifetime = 0.1
  326.  
  327. trailside1.Color = ColorSequence.new(ColorArray)
  328.  
  329. trailside1.Attachment0 = att1
  330. trailside1.Attachment1 = att3
  331. trailside1.Transparency = NumberSequence.new({
  332. NumberSequenceKeypoint.new(0, 0.5, 0),
  333. NumberSequenceKeypoint.new(1, 1, 0)
  334. })
  335.  
  336. local trailside2 = Instance.new("Trail", c["Right Arm"])
  337. trailside2.Enabled = true
  338. trailside2.Texture = "rbxassetid://16607923"
  339. trailside2.Name = "sidetrail2"
  340. trailside2.MinLength = 0
  341. trailside2.Lifetime = 0.1
  342.  
  343. trailside2.Color = ColorSequence.new(ColorArray)
  344.  
  345. trailside2.Attachment0 = att2
  346. trailside2.Attachment1 = att4
  347. trailside2.Transparency = NumberSequence.new({
  348. NumberSequenceKeypoint.new(0, 0.5, 0),
  349. NumberSequenceKeypoint.new(1, 1, 0)
  350. })
  351.  
  352.  
  353. local trailtop12 = Instance.new("Trail", c["Left Arm"])
  354. trailtop12.Enabled = true
  355. trailtop12.Texture = "rbxassetid://16607923"
  356. trailtop12.Name = "toptrail"
  357. trailtop12.MinLength = 0
  358. trailtop12.Lifetime = 0.1
  359.  
  360. trailtop12.Color = ColorSequence.new(ColorArray)
  361.  
  362. trailtop12.Attachment0 = attt1
  363. trailtop12.Attachment1 = attt2
  364. trailtop12.Transparency = NumberSequence.new({
  365. NumberSequenceKeypoint.new(0, 0.5, 0),
  366. NumberSequenceKeypoint.new(1, 1, 0)
  367. })
  368.  
  369. local trailbot2 = Instance.new("Trail", c["Left Arm"])
  370. trailbot2.Enabled = true
  371. trailbot2.Texture = "rbxassetid://16607923"
  372. trailbot2.Name = "bottrail"
  373. trailbot2.MinLength = 0
  374. trailbot2.Lifetime = 0.1
  375.  
  376. trailbot2.Color = ColorSequence.new(ColorArray)
  377.  
  378. trailbot2.Attachment0 = attt3
  379. trailbot2.Attachment1 = attt4
  380. trailbot2.Transparency = NumberSequence.new({
  381. NumberSequenceKeypoint.new(0, 0.5, 0),
  382. NumberSequenceKeypoint.new(1, 1, 0)
  383. })
  384.  
  385. local trailside12 = Instance.new("Trail", c["Left Arm"])
  386. trailside12.Enabled = true
  387. trailside12.Texture = "rbxassetid://16607923"
  388. trailside12.Name = "sidetrail1"
  389. trailside12.MinLength = 0
  390. trailside12.Lifetime = 0.1
  391.  
  392. trailside12.Color = ColorSequence.new(ColorArray)
  393.  
  394. trailside12.Attachment0 = attt1
  395. trailside12.Attachment1 = attt3
  396. trailside12.Transparency = NumberSequence.new({
  397. NumberSequenceKeypoint.new(0, 0.5, 0),
  398. NumberSequenceKeypoint.new(1, 1, 0)
  399. })
  400.  
  401. local trailside22 = Instance.new("Trail", c["Left Arm"])
  402. trailside22.Enabled = true
  403. trailside22.Texture = "rbxassetid://16607923"
  404. trailside22.Name = "sidetrail2"
  405. trailside22.MinLength = 0
  406. trailside22.Lifetime = 0.1
  407.  
  408. trailside22.Color = ColorSequence.new(ColorArray)
  409.  
  410. trailside22.Attachment0 = attt2
  411. trailside22.Attachment1 = attt4
  412. trailside22.Transparency = NumberSequence.new({
  413. NumberSequenceKeypoint.new(0, 0.5, 0),
  414. NumberSequenceKeypoint.new(1, 1, 0)
  415. })
  416.  
  417. local att1 = Instance.new("Attachment", c["Torso"])
  418. att1.Name = "att1"
  419. att1.Position = Vector3.new(1, 1, 0.5)
  420. local att2 = Instance.new("Attachment", c["Torso"])
  421. att2.Name = "att2"
  422. att2.Position = Vector3.new(-1, 1, 0.5)
  423. local att3 = Instance.new("Attachment", c["Torso"])
  424. att3.Name = "att3"
  425. att3.Position = Vector3.new(1, -1, 0.5)
  426. local att4 = Instance.new("Attachment", c["Torso"])
  427. att4.Name = "att4"
  428. att4.Position = Vector3.new(-1, -1, 0.5)
  429.  
  430. local attt1 = Instance.new("Attachment", c["Head"])
  431. attt1.Name = "att1"
  432. attt1.Position = Vector3.new(.55, .55, 0.025)
  433. local attt2 = Instance.new("Attachment", c["Head"])
  434. attt2.Name = "att2"
  435. attt2.Position = Vector3.new(-.55, .55, 0.025)
  436. local attt3 = Instance.new("Attachment", c["Head"])
  437. attt3.Name = "att3"
  438. attt3.Position = Vector3.new(.55, -.5, 0.025)
  439. local attt4 = Instance.new("Attachment", c["Head"])
  440. attt4.Name = "att4"
  441. attt4.Position = Vector3.new(-.55, -.5, 0.025)
  442. local trailtop1 = Instance.new("Trail", c["Torso"])
  443. trailtop1.Enabled = true
  444. trailtop1.Texture = "rbxassetid://16607923"
  445. trailtop1.Name = "toptrail"
  446. trailtop1.MinLength = 0
  447. trailtop1.Lifetime = 0.1
  448.  
  449. trailtop1.Color = ColorSequence.new(ColorArray)
  450.  
  451. trailtop1.Attachment0 = att1
  452. trailtop1.Attachment1 = att2
  453. trailtop1.Transparency = NumberSequence.new({
  454. NumberSequenceKeypoint.new(0, 0.5, 0),
  455. NumberSequenceKeypoint.new(1, 1, 0)
  456. })
  457. local trailbot1 = Instance.new("Trail", c["Torso"])
  458. trailbot1.Enabled = true
  459. trailbot1.Texture = "rbxassetid://16607923"
  460. trailbot1.Name = "bottrail"
  461. trailbot1.MinLength = 0
  462. trailbot1.Lifetime = 0.1
  463.  
  464. trailbot1.Color = ColorSequence.new(ColorArray)
  465.  
  466. trailbot1.Attachment0 = att3
  467. trailbot1.Attachment1 = att4
  468. trailbot1.Transparency = NumberSequence.new({
  469. NumberSequenceKeypoint.new(0, 0.5, 0),
  470. NumberSequenceKeypoint.new(1, 1, 0)
  471. })
  472. local trailside1 = Instance.new("Trail", c["Torso"])
  473. trailside1.Enabled = true
  474. trailside1.Texture = "rbxassetid://16607923"
  475. trailside1.Name = "sidetrail1"
  476. trailside1.MinLength = 0
  477. trailside1.Lifetime = 0.1
  478.  
  479. trailside1.Color = ColorSequence.new(ColorArray)
  480.  
  481. trailside1.Attachment0 = att1
  482. trailside1.Attachment1 = att3
  483. trailside1.Transparency = NumberSequence.new({
  484. NumberSequenceKeypoint.new(0, 0.5, 0),
  485. NumberSequenceKeypoint.new(1, 1, 0)
  486. })
  487. local trailside2 = Instance.new("Trail", c["Torso"])
  488. trailside2.Enabled = true
  489. trailside2.Texture = "rbxassetid://16607923"
  490. trailside2.Name = "sidetrail2"
  491. trailside2.MinLength = 0
  492. trailside2.Lifetime = 0.1
  493.  
  494. trailside2.Color = ColorSequence.new(ColorArray)
  495.  
  496. trailside2.Attachment0 = att2
  497. trailside2.Attachment1 = att4
  498. trailside2.Transparency = NumberSequence.new({
  499. NumberSequenceKeypoint.new(0, 0.5, 0),
  500. NumberSequenceKeypoint.new(1, 1, 0)
  501. })
  502. local trailtop12 = Instance.new("Trail", c["Head"])
  503. trailtop12.Enabled = true
  504. trailtop12.Texture = "rbxassetid://16607923"
  505. trailtop12.Name = "toptrail"
  506. trailtop12.MinLength = 0
  507. trailtop12.Lifetime = 0.1
  508.  
  509. trailtop12.Color = ColorSequence.new(ColorArray)
  510.  
  511. trailtop12.Attachment0 = attt1
  512. trailtop12.Attachment1 = attt2
  513. trailtop12.Transparency = NumberSequence.new({
  514. NumberSequenceKeypoint.new(0, 0.5, 0),
  515. NumberSequenceKeypoint.new(1, 1, 0)
  516. })
  517. local trailbot2 = Instance.new("Trail", c["Head"])
  518. trailbot2.Enabled = true
  519. trailbot2.Texture = "rbxassetid://16607923"
  520. trailbot2.Name = "bottrail"
  521. trailbot2.MinLength = 0
  522. trailbot2.Lifetime = 0.1
  523.  
  524. trailbot2.Color = ColorSequence.new(ColorArray)
  525.  
  526. trailbot2.Attachment0 = attt3
  527. trailbot2.Attachment1 = attt4
  528. trailbot2.Transparency = NumberSequence.new({
  529. NumberSequenceKeypoint.new(0, 0.5, 0),
  530. NumberSequenceKeypoint.new(1, 1, 0)
  531. })
  532. local trailside12 = Instance.new("Trail", c["Head"])
  533. trailside12.Enabled = true
  534. trailside12.Texture = "rbxassetid://16607923"
  535. trailside12.Name = "sidetrail1"
  536. trailside12.MinLength = 0
  537. trailside12.Lifetime = 0.1
  538.  
  539. trailside12.Color = ColorSequence.new(ColorArray)
  540.  
  541. trailside12.Attachment0 = attt1
  542. trailside12.Attachment1 = attt3
  543. trailside12.Transparency = NumberSequence.new({
  544. NumberSequenceKeypoint.new(0, 0.5, 0),
  545. NumberSequenceKeypoint.new(1, 1, 0)
  546. })
  547. local trailside22 = Instance.new("Trail", c["Head"])
  548. trailside22.Enabled = true
  549. trailside22.Texture = "rbxassetid://16607923"
  550. trailside22.Name = "sidetrail2"
  551. trailside22.MinLength = 0
  552. trailside22.Lifetime = 0.1
  553.  
  554. trailside22.Color = ColorSequence.new(ColorArray)
  555.  
  556. trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
  557. trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
  558.  
  559. Sped = 0
  560.  
  561. function ragplayer(cactus)
  562. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://131026421" S.Volume = 2 S:Play()
  563. cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
  564. if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
  565. cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
  566. makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
  567. maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
  568. end
  569. if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
  570. cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
  571. makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
  572. maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
  573. end
  574. if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
  575. cactus.Torso:FindFirstChild("Right Hip"):Destroy()
  576. makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
  577. maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
  578. end
  579. if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
  580. cactus.Torso:FindFirstChild("Left Hip"):Destroy()
  581. makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
  582. maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
  583. end
  584. cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15)
  585. end
  586. 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
  587.  
  588. 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
  589.  
  590. local hitz = false
  591. c.HumanoidRootPart.Touched:connect(function(Hit)
  592. if thing >= 100 then
  593. if hitz == false then hitz = true
  594. ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://386946017" S.Volume = 6 S:Play()
  595. wait(15)
  596. end
  597. end
  598. end)
  599.  
  600. function Spin()
  601. attack = true
  602. while attack == true do Sped = Sped + 0.25
  603. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1)
  604. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  605. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  606. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  607. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  608. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  609. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  610. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  611. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  612. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  613. swait()
  614. end
  615. end
  616.  
  617. SanicScreams = {585370931,202427593}
  618.  
  619. mouse.KeyDown:connect(function(key)
  620. if attack == true then return end
  621. if key == "q" then
  622. Spin()
  623. end
  624. if key == "e" then
  625. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://537371462" S.Volume = 10 S:Play()
  626. wait(1.25)
  627. local Sanic = SanicScreams[math.random(1,#SanicScreams)]
  628. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://"..Sanic S.Volume = 10 S:Play()
  629. spawn(function()
  630. local Sp = Instance.new("Part",game.Workspace)Sp.BrickColor = BrickColor.new("Deep orange")Sp.Material = "Neon" Sp.Size = Vector3.new(1,1,1) Sp.Anchored = true Sp.CanCollide = false
  631. local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame
  632. for i = 1,25 do
  633. SPM.Scale = SPM.Scale + Vector3.new(4,4,4)
  634. Sp.Transparency = Sp.Transparency + 1/25
  635. swait()
  636. end
  637. end)
  638. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://214444596" S.Volume = 10 S:Play()
  639. Sped = 10000000000
  640. end
  641. end)
  642.  
  643. mouse.KeyUp:connect(function(key)
  644. if key == "q" then
  645. attack = false
  646. end
  647. end)
  648.  
  649. local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15)
  650. P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart"
  651. P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass"
  652. spawn(function()
  653. while true do
  654. P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z)
  655. swait()
  656. end
  657. end)
  658.  
  659. anim.Parent = nil
  660. sine = 0
  661.  
  662. game:GetService("RunService").RenderStepped:connect(function()
  663. if attack == false then
  664. thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  665. game.Workspace.CurrentCamera.FieldOfView = 70+thing/100
  666. if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1
  667. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1)
  668. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  669. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  670. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  671. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  672. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  673. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  674. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  675. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  676. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  677. elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then
  678. sine = sine + 1 Sped = Sped + 0.1
  679. if thing <= 200 then
  680. if S2.PlaybackSpeed >= 1 then
  681. S2.PlaybackSpeed = 1
  682. else
  683. S2.PlaybackSpeed = thing/80
  684. end
  685. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  686. S2.Volume = thing/20
  687. end
  688. if thing <= 200 then
  689. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  690. S2.Volume = thing/20
  691. else
  692. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  693. end
  694. if thing <= 100 then
  695. for i,v in pairs(c:children()) do
  696. if v.ClassName == "Part" then
  697. for i,v2 in pairs(v:children()) do
  698. if v2.ClassName == "Trail" then
  699. v2.Enabled = false
  700. v2.LightEmission = 1
  701. end
  702. end
  703. end
  704. end
  705. else
  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.Lifetime = 2
  711. v2.Enabled = true
  712. end
  713. end
  714. end
  715. end
  716. end
  717. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1)
  718. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  719. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1)
  720. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  721. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1)
  722. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  723. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  724. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  725. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  726. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  727. else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0
  728. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  729. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  730. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  731. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  732. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  733. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  734. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  735. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  736. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  737. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  738. end
  739. for i,v in pairs (c:children()) do
  740. if v.ClassName == "Accessory" then
  741. for i,v2 in pairs (v:children()) do
  742. if v2.ClassName == "Part" then
  743. v2.Anchored = false
  744. end
  745. end
  746. end
  747. for i,v in pairs (c:children()) do
  748. if v.ClassName == "Part" then
  749. v.Anchored = false
  750. end
  751. end
  752. end
  753. end
  754. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement