Advertisement
idkwhatiam

sonic

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