AnormalPerson

Sonic

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