Advertisement
Michael91

TEST SONIC

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