Advertisement
SCR1PT_ED1T0R

FE Sonic Runner

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