Advertisement
Guest User

Untitled

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