Advertisement
Guest User

for kay

a guest
Feb 25th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 31.81 KB | None | 0 0
  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. print("Original script made by someone else, i just edited it with actual Sonic sounds. -- Velo")
  143. wait()
  144. thing = 0
  145. LoudVolume = false
  146. Submerged = false
  147. Music = true
  148. script.Name = "SANIIIIC"
  149. c = Player.Character
  150. Head = c.Head
  151. Humanoid = c.Humanoid
  152. anim = c.Humanoid.Animator
  153. rage = false
  154. p = Player
  155. Music = false
  156. anim = Humanoid.Animator
  157. local Effects = {}
  158. attack = false
  159. local attacking = false
  160. vt = Vector3.new
  161. bc = BrickColor.new
  162. br = BrickColor.random
  163. it = Instance.new
  164. cf = CFrame.new
  165. euler = CFrame.fromEulerAnglesXYZ
  166. angles = CFrame.Angles
  167. matr = math.random
  168.  
  169.   RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  170.   RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  171.   LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  172.   LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  173.   RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  174.   RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  175.   LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  176.   LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  177.   NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  178.   NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  179.   RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  180.   RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  181.   RS = c.Torso:FindFirstChild("Right Shoulder")
  182.   LS = c.Torso:FindFirstChild("Left Shoulder")
  183.   RH = c.Torso:FindFirstChild("Right Hip")
  184.   LH = c.Torso:FindFirstChild("Left Hip")
  185.   RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  186.   N = c.Torso:FindFirstChild("Neck")
  187.   cf = CFrame.new
  188.   ang = CFrame.Angles
  189.   rd = math.rad
  190.   rd2 = math.random
  191.  
  192. --[[mainShirt = c.Shirt
  193. mainPants = c.Pants
  194. mainBColors = c["Body Colors"]
  195. mainShirt.ShirtTemplate = "rbxassetid://769869277"
  196. mainPants.PantsTemplate = "rbxassetid://805486769"
  197. mainBColors.HeadColor = BrickColor.new("Pastel brown")
  198. mainBColors.LeftArmColor = BrickColor.new("Pastel brown")
  199. mainBColors.LeftLegColor = BrickColor.new("Pastel brown")
  200. mainBColors.RightArmColor = BrickColor.new("Pastel brown")
  201. mainBColors.RightLegColor = BrickColor.new("Pastel brown")
  202. mainBColors.TorsoColor = BrickColor.new("Pastel brown")]]
  203. function swait(num)
  204. if num==0 or num==nil then
  205. game:service'RunService'.Heartbeat:wait(0)
  206. else
  207. for i=0,num do
  208. game:service'RunService'.Heartbeat:wait(0)
  209. end
  210. end
  211. end
  212.    
  213.   function lerpz(joint, prop, cfrmz, alp)
  214.     joint[prop] = joint[prop]:lerp(cfrmz, alp)
  215.   end
  216.   function resetlerp()
  217.     RJ.C0 = RJC0
  218.     RJ.C1 = RJC1
  219.     N.C0 = NC0
  220.     N.C1 = NC1
  221.     RS.C0 = RSC0
  222.     RS.C1 = RSC1
  223.     LS.C0 = LSC0
  224.     LS.C1 = LSC1
  225.     RH.C0 = RHC0
  226.     RH.C1 = RHC1
  227.     LH.C0 = LHC0
  228.     LH.C1 = LHC1
  229.   end
  230.  
  231. local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://" S2.Volume = 0 S2.PlaybackSpeed = 0 S2.Looped = true S2:Play()
  232. c.Head.face:remove()
  233.  
  234. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
  235. local att1 = Instance.new("Attachment", c["Right Leg"])
  236. att1.Name = "att1"
  237. att1.Position = Vector3.new(0.5, 1, 0.5)
  238. local att2 = Instance.new("Attachment", c["Right Leg"])
  239. att2.Name = "att2"
  240. att2.Position = Vector3.new(-0.5, 1, 0.5)
  241. local att3 = Instance.new("Attachment", c["Right Leg"])
  242. att3.Name = "att3"
  243. att3.Position = Vector3.new(0.5, -1, 0.5)
  244. local att4 = Instance.new("Attachment", c["Right Leg"])
  245. att4.Name = "att4"
  246. att4.Position = Vector3.new(-0.5, -1, 0.5)
  247.  
  248. local attt1 = Instance.new("Attachment", c["Left Leg"])
  249. attt1.Name = "att1"
  250. attt1.Position = Vector3.new(0.5, 1, 0.5)
  251. local attt2 = Instance.new("Attachment", c["Left Leg"])
  252. attt2.Name = "att2"
  253. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  254. local attt3 = Instance.new("Attachment", c["Left Leg"])
  255. attt3.Name = "att3"
  256. attt3.Position = Vector3.new(0.5, -1, 0.5)
  257. local attt4 = Instance.new("Attachment", c["Left Leg"])
  258. attt4.Name = "att4"
  259. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  260.  
  261. local trailtop1 = Instance.new("Trail", c["Right Leg"])
  262. trailtop1.Enabled = true
  263. trailtop1.Texture = "rbxassetid://16607923"
  264. trailtop1.Name = "toptrail"
  265. trailtop1.MinLength = 0
  266. trailtop1.Lifetime = 0.1
  267.  
  268. trailtop1.Color = ColorSequence.new(ColorArray)
  269.  
  270. trailtop1.Attachment0 = att1
  271. trailtop1.Attachment1 = att2
  272. trailtop1.Transparency = NumberSequence.new({
  273.           NumberSequenceKeypoint.new(0, 0.5, 0),
  274.           NumberSequenceKeypoint.new(1, 1, 0)
  275.         })
  276.  
  277. local trailbot1 = Instance.new("Trail", c["Right Leg"])
  278. trailbot1.Enabled = true
  279. trailbot1.Texture = "rbxassetid://16607923"
  280. trailbot1.Name = "bottrail"
  281. trailbot1.MinLength = 0
  282. trailbot1.Lifetime = 0.1
  283.  
  284. trailbot1.Color = ColorSequence.new(ColorArray)
  285.  
  286. trailbot1.Attachment0 = att3
  287. trailbot1.Attachment1 = att4
  288. trailbot1.Transparency = NumberSequence.new({
  289.           NumberSequenceKeypoint.new(0, 0.5, 0),
  290.           NumberSequenceKeypoint.new(1, 1, 0)
  291.         })
  292.  
  293. local trailside1 = Instance.new("Trail", c["Right Leg"])
  294. trailside1.Enabled = true
  295. trailside1.Texture = "rbxassetid://16607923"
  296. trailside1.Name = "sidetrail1"
  297. trailside1.MinLength = 0
  298. trailside1.Lifetime = 0.1
  299.  
  300. trailside1.Color = ColorSequence.new(ColorArray)
  301.  
  302. trailside1.Attachment0 = att1
  303. trailside1.Attachment1 = att3
  304. trailside1.Transparency = NumberSequence.new({
  305.           NumberSequenceKeypoint.new(0, 0.5, 0),
  306.           NumberSequenceKeypoint.new(1, 1, 0)
  307.         })
  308.  
  309. local trailside2 = Instance.new("Trail", c["Right Leg"])
  310. trailside2.Enabled = true
  311. trailside2.Texture = "rbxassetid://16607923"
  312. trailside2.Name = "sidetrail2"
  313. trailside2.MinLength = 0
  314. trailside2.Lifetime = 0.1
  315. spawn(function()
  316. while true do wait()
  317. trailside2.Color = ColorSequence.new(ColorArray)
  318. end
  319. end)
  320. trailside2.Attachment0 = att2
  321. trailside2.Attachment1 = att4
  322. trailside2.Transparency = NumberSequence.new({
  323.           NumberSequenceKeypoint.new(0, 0.5, 0),
  324.           NumberSequenceKeypoint.new(1, 1, 0)
  325.         })
  326.  
  327.  
  328. local trailtop12 = Instance.new("Trail", c["Left Leg"])
  329. trailtop12.Enabled = true
  330. trailtop12.Texture = "rbxassetid://16607923"
  331. trailtop12.Name = "toptrail"
  332. trailtop12.MinLength = 0
  333. trailtop12.Lifetime = 0.1
  334. spawn(function()
  335. while true do wait()
  336. trailtop12.Color = ColorSequence.new(ColorArray)
  337. end
  338. end)
  339. trailtop12.Attachment0 = attt1
  340. trailtop12.Attachment1 = attt2
  341. trailtop12.Transparency = NumberSequence.new({
  342.           NumberSequenceKeypoint.new(0, 0.5, 0),
  343.           NumberSequenceKeypoint.new(1, 1, 0)
  344.         })
  345.  
  346. local trailbot2 = Instance.new("Trail", c["Left Leg"])
  347. trailbot2.Enabled = true
  348. trailbot2.Texture = "rbxassetid://16607923"
  349. trailbot2.Name = "bottrail"
  350. trailbot2.MinLength = 0
  351. trailbot2.Lifetime = 0.1
  352.  
  353. trailbot2.Color = ColorSequence.new(ColorArray)
  354.  
  355. trailbot2.Attachment0 = attt3
  356. trailbot2.Attachment1 = attt4
  357. trailbot2.Transparency = NumberSequence.new({
  358.           NumberSequenceKeypoint.new(0, 0.5, 0),
  359.           NumberSequenceKeypoint.new(1, 1, 0)
  360.         })
  361.  
  362. local trailside12 = Instance.new("Trail", c["Left Leg"])
  363. trailside12.Enabled = true
  364. trailside12.Texture = "rbxassetid://16607923"
  365. trailside12.Name = "sidetrail1"
  366. trailside12.MinLength = 0
  367. trailside12.Lifetime = 0.1
  368.  
  369. trailside12.Color = ColorSequence.new(ColorArray)
  370.  
  371. trailside12.Attachment0 = attt1
  372. trailside12.Attachment1 = attt3
  373. trailside12.Transparency = NumberSequence.new({
  374.           NumberSequenceKeypoint.new(0, 0.5, 0),
  375.           NumberSequenceKeypoint.new(1, 1, 0)
  376.         })
  377.  
  378. local trailside22 = Instance.new("Trail", c["Left Leg"])
  379. trailside22.Enabled = true
  380. trailside22.Texture = "rbxassetid://16607923"
  381. trailside22.Name = "sidetrail2"
  382. trailside22.MinLength = 0
  383. trailside22.Lifetime = 0.1
  384.  
  385. trailside22.Color = ColorSequence.new(ColorArray)
  386.  
  387. trailside22.Attachment0 = attt2
  388. trailside22.Attachment1 = attt4
  389. trailside22.Transparency = NumberSequence.new({
  390.           NumberSequenceKeypoint.new(0, 0.5, 0),
  391.           NumberSequenceKeypoint.new(1, 1, 0)
  392.         })
  393.  
  394.  
  395. local att1 = Instance.new("Attachment", c["Right Arm"])
  396. att1.Name = "att1"
  397. att1.Position = Vector3.new(0.5, 1, 0.5)
  398. local att2 = Instance.new("Attachment", c["Right Arm"])
  399. att2.Name = "att2"
  400. att2.Position = Vector3.new(-0.5, 1, 0.5)
  401. local att3 = Instance.new("Attachment", c["Right Arm"])
  402. att3.Name = "att3"
  403. att3.Position = Vector3.new(0.5, -1, 0.5)
  404. local att4 = Instance.new("Attachment", c["Right Arm"])
  405. att4.Name = "att4"
  406. att4.Position = Vector3.new(-0.5, -1, 0.5)
  407.  
  408. local attt1 = Instance.new("Attachment", c["Left Arm"])
  409. attt1.Name = "att1"
  410. attt1.Position = Vector3.new(0.5, 1, 0.5)
  411. local attt2 = Instance.new("Attachment", c["Left Arm"])
  412. attt2.Name = "att2"
  413. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  414. local attt3 = Instance.new("Attachment", c["Left Arm"])
  415. attt3.Name = "att3"
  416. attt3.Position = Vector3.new(0.5, -1, 0.5)
  417. local attt4 = Instance.new("Attachment", c["Left Arm"])
  418. attt4.Name = "att4"
  419. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  420.  
  421. local trailtop1 = Instance.new("Trail", c["Right Arm"])
  422. trailtop1.Enabled = true
  423. trailtop1.Texture = "rbxassetid://16607923"
  424. trailtop1.Name = "toptrail"
  425. trailtop1.MinLength = 0
  426. trailtop1.Lifetime = 0.1
  427.  
  428. trailtop1.Color = ColorSequence.new(ColorArray)
  429.  
  430. trailtop1.Attachment0 = att1
  431. trailtop1.Attachment1 = att2
  432. trailtop1.Transparency = NumberSequence.new({
  433.           NumberSequenceKeypoint.new(0, 0.5, 0),
  434.           NumberSequenceKeypoint.new(1, 1, 0)
  435.         })
  436.  
  437. local trailbot1 = Instance.new("Trail", c["Right Arm"])
  438. trailbot1.Enabled = true
  439. trailbot1.Texture = "rbxassetid://16607923"
  440. trailbot1.Name = "bottrail"
  441. trailbot1.MinLength = 0
  442. trailbot1.Lifetime = 0.1
  443. spawn(function()
  444. while true do wait()
  445. trailbot1.Color = ColorSequence.new(ColorArray)
  446. end
  447. end)
  448. trailbot1.Attachment0 = att3
  449. trailbot1.Attachment1 = att4
  450. trailbot1.Transparency = NumberSequence.new({
  451.           NumberSequenceKeypoint.new(0, 0.5, 0),
  452.           NumberSequenceKeypoint.new(1, 1, 0)
  453.         })
  454.  
  455. local trailside1 = Instance.new("Trail", c["Right Arm"])
  456. trailside1.Enabled = true
  457. trailside1.Texture = "rbxassetid://16607923"
  458. trailside1.Name = "sidetrail1"
  459. trailside1.MinLength = 0
  460. trailside1.Lifetime = 0.1
  461.  
  462. trailside1.Color = ColorSequence.new(ColorArray)
  463.  
  464. trailside1.Attachment0 = att1
  465. trailside1.Attachment1 = att3
  466. trailside1.Transparency = NumberSequence.new({
  467.           NumberSequenceKeypoint.new(0, 0.5, 0),
  468.           NumberSequenceKeypoint.new(1, 1, 0)
  469.         })
  470.  
  471. local trailside2 = Instance.new("Trail", c["Right Arm"])
  472. trailside2.Enabled = true
  473. trailside2.Texture = "rbxassetid://16607923"
  474. trailside2.Name = "sidetrail2"
  475. trailside2.MinLength = 0
  476. trailside2.Lifetime = 0.1
  477.  
  478. trailside2.Color = ColorSequence.new(ColorArray)
  479.  
  480. trailside2.Attachment0 = att2
  481. trailside2.Attachment1 = att4
  482. trailside2.Transparency = NumberSequence.new({
  483.           NumberSequenceKeypoint.new(0, 0.5, 0),
  484.           NumberSequenceKeypoint.new(1, 1, 0)
  485.         })
  486.  
  487.  
  488. local trailtop12 = Instance.new("Trail", c["Left Arm"])
  489. trailtop12.Enabled = true
  490. trailtop12.Texture = "rbxassetid://16607923"
  491. trailtop12.Name = "toptrail"
  492. trailtop12.MinLength = 0
  493. trailtop12.Lifetime = 0.1
  494.  
  495. trailtop12.Color = ColorSequence.new(ColorArray)
  496.  
  497. trailtop12.Attachment0 = attt1
  498. trailtop12.Attachment1 = attt2
  499. trailtop12.Transparency = NumberSequence.new({
  500.           NumberSequenceKeypoint.new(0, 0.5, 0),
  501.           NumberSequenceKeypoint.new(1, 1, 0)
  502.         })
  503.  
  504. local trailbot2 = Instance.new("Trail", c["Left Arm"])
  505. trailbot2.Enabled = true
  506. trailbot2.Texture = "rbxassetid://16607923"
  507. trailbot2.Name = "bottrail"
  508. trailbot2.MinLength = 0
  509. trailbot2.Lifetime = 0.1
  510.  
  511. trailbot2.Color = ColorSequence.new(ColorArray)
  512.  
  513. trailbot2.Attachment0 = attt3
  514. trailbot2.Attachment1 = attt4
  515. trailbot2.Transparency = NumberSequence.new({
  516.           NumberSequenceKeypoint.new(0, 0.5, 0),
  517.           NumberSequenceKeypoint.new(1, 1, 0)
  518.         })
  519.  
  520. local trailside12 = Instance.new("Trail", c["Left Arm"])
  521. trailside12.Enabled = true
  522. trailside12.Texture = "rbxassetid://16607923"
  523. trailside12.Name = "sidetrail1"
  524. trailside12.MinLength = 0
  525. trailside12.Lifetime = 0.1
  526.  
  527. trailside12.Color = ColorSequence.new(ColorArray)
  528.  
  529. trailside12.Attachment0 = attt1
  530. trailside12.Attachment1 = attt3
  531. trailside12.Transparency = NumberSequence.new({
  532.           NumberSequenceKeypoint.new(0, 0.5, 0),
  533.           NumberSequenceKeypoint.new(1, 1, 0)
  534.         })
  535.  
  536. local trailside22 = Instance.new("Trail", c["Left Arm"])
  537. trailside22.Enabled = true
  538. trailside22.Texture = "rbxassetid://16607923"
  539. trailside22.Name = "sidetrail2"
  540. trailside22.MinLength = 0
  541. trailside22.Lifetime = 0.1
  542.  
  543. trailside22.Color = ColorSequence.new(ColorArray)
  544.  
  545. trailside22.Attachment0 = attt2
  546. trailside22.Attachment1 = attt4
  547. trailside22.Transparency = NumberSequence.new({
  548.           NumberSequenceKeypoint.new(0, 0.5, 0),
  549.           NumberSequenceKeypoint.new(1, 1, 0)
  550.         }) 
  551.  
  552. local att1 = Instance.new("Attachment", c["Torso"])
  553. att1.Name = "att1"
  554. att1.Position = Vector3.new(1, 1, 0.5)
  555. local att2 = Instance.new("Attachment", c["Torso"])
  556. att2.Name = "att2"
  557. att2.Position = Vector3.new(-1, 1, 0.5)
  558. local att3 = Instance.new("Attachment", c["Torso"])
  559. att3.Name = "att3"
  560. att3.Position = Vector3.new(1, -1, 0.5)
  561. local att4 = Instance.new("Attachment", c["Torso"])
  562. att4.Name = "att4"
  563. att4.Position = Vector3.new(-1, -1, 0.5)
  564.  
  565. local attt1 = Instance.new("Attachment", c["Head"])
  566. attt1.Name = "att1"
  567. attt1.Position = Vector3.new(.55, .55, 0.025)
  568. local attt2 = Instance.new("Attachment", c["Head"])
  569. attt2.Name = "att2"
  570. attt2.Position = Vector3.new(-.55, .55, 0.025)
  571. local attt3 = Instance.new("Attachment", c["Head"])
  572. attt3.Name = "att3"
  573. attt3.Position = Vector3.new(.55, -.5, 0.025)
  574. local attt4 = Instance.new("Attachment", c["Head"])
  575. attt4.Name = "att4"
  576. attt4.Position = Vector3.new(-.55, -.5, 0.025)
  577. local trailtop1 = Instance.new("Trail", c["Torso"])
  578. trailtop1.Enabled = true
  579. trailtop1.Texture = "rbxassetid://16607923"
  580. trailtop1.Name = "toptrail"
  581. trailtop1.MinLength = 0
  582. trailtop1.Lifetime = 0.1
  583.  
  584. trailtop1.Color = ColorSequence.new(ColorArray)
  585.  
  586. trailtop1.Attachment0 = att1
  587. trailtop1.Attachment1 = att2
  588. trailtop1.Transparency = NumberSequence.new({
  589.           NumberSequenceKeypoint.new(0, 0.5, 0),
  590.           NumberSequenceKeypoint.new(1, 1, 0)
  591.         })
  592. local trailbot1 = Instance.new("Trail", c["Torso"])
  593. trailbot1.Enabled = true
  594. trailbot1.Texture = "rbxassetid://16607923"
  595. trailbot1.Name = "bottrail"
  596. trailbot1.MinLength = 0
  597. trailbot1.Lifetime = 0.1
  598.  
  599. trailbot1.Color = ColorSequence.new(ColorArray)
  600.  
  601. trailbot1.Attachment0 = att3
  602. trailbot1.Attachment1 = att4
  603. trailbot1.Transparency = NumberSequence.new({
  604.           NumberSequenceKeypoint.new(0, 0.5, 0),
  605.           NumberSequenceKeypoint.new(1, 1, 0)
  606.         })
  607. local trailside1 = Instance.new("Trail", c["Torso"])
  608. trailside1.Enabled = true
  609. trailside1.Texture = "rbxassetid://16607923"
  610. trailside1.Name = "sidetrail1"
  611. trailside1.MinLength = 0
  612. trailside1.Lifetime = 0.1
  613.  
  614. trailside1.Color = ColorSequence.new(ColorArray)
  615.  
  616. trailside1.Attachment0 = att1
  617. trailside1.Attachment1 = att3
  618. trailside1.Transparency = NumberSequence.new({
  619.           NumberSequenceKeypoint.new(0, 0.5, 0),
  620.           NumberSequenceKeypoint.new(1, 1, 0)
  621.         })
  622. local trailside2 = Instance.new("Trail", c["Torso"])
  623. trailside2.Enabled = true
  624. trailside2.Texture = "rbxassetid://16607923"
  625. trailside2.Name = "sidetrail2"
  626. trailside2.MinLength = 0
  627. trailside2.Lifetime = 0.1
  628.  
  629. trailside2.Color = ColorSequence.new(ColorArray)
  630.  
  631. trailside2.Attachment0 = att2
  632. trailside2.Attachment1 = att4
  633. trailside2.Transparency = NumberSequence.new({
  634.           NumberSequenceKeypoint.new(0, 0.5, 0),
  635.           NumberSequenceKeypoint.new(1, 1, 0)
  636.         })
  637. local trailtop12 = Instance.new("Trail", c["Head"])
  638. trailtop12.Enabled = true
  639. trailtop12.Texture = "rbxassetid://16607923"
  640. trailtop12.Name = "toptrail"
  641. trailtop12.MinLength = 0
  642. trailtop12.Lifetime = 0.1
  643.  
  644. trailtop12.Color = ColorSequence.new(ColorArray)
  645.  
  646. trailtop12.Attachment0 = attt1
  647. trailtop12.Attachment1 = attt2
  648. trailtop12.Transparency = NumberSequence.new({
  649.           NumberSequenceKeypoint.new(0, 0.5, 0),
  650.           NumberSequenceKeypoint.new(1, 1, 0)
  651.         })
  652. local trailbot2 = Instance.new("Trail", c["Head"])
  653. trailbot2.Enabled = true
  654. trailbot2.Texture = "rbxassetid://16607923"
  655. trailbot2.Name = "bottrail"
  656. trailbot2.MinLength = 0
  657. trailbot2.Lifetime = 0.1
  658.  
  659. trailbot2.Color = ColorSequence.new(ColorArray)
  660.  
  661. trailbot2.Attachment0 = attt3
  662. trailbot2.Attachment1 = attt4
  663. trailbot2.Transparency = NumberSequence.new({
  664.           NumberSequenceKeypoint.new(0, 0.5, 0),
  665.           NumberSequenceKeypoint.new(1, 1, 0)
  666.         })
  667. local trailside12 = Instance.new("Trail", c["Head"])
  668. trailside12.Enabled = true
  669. trailside12.Texture = "rbxassetid://16607923"
  670. trailside12.Name = "sidetrail1"
  671. trailside12.MinLength = 0
  672. trailside12.Lifetime = 0.1
  673.  
  674. trailside12.Color = ColorSequence.new(ColorArray)
  675.  
  676. trailside12.Attachment0 = attt1
  677. trailside12.Attachment1 = attt3
  678. trailside12.Transparency = NumberSequence.new({
  679.           NumberSequenceKeypoint.new(0, 0.5, 0),
  680.           NumberSequenceKeypoint.new(1, 1, 0)
  681.         })
  682. local trailside22 = Instance.new("Trail", c["Head"])
  683. trailside22.Enabled = true
  684. trailside22.Texture = "rbxassetid://16607923"
  685. trailside22.Name = "sidetrail2"
  686. trailside22.MinLength = 0
  687. trailside22.Lifetime = 0.1
  688.  
  689. trailside22.Color = ColorSequence.new(ColorArray)
  690.  
  691. trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
  692. trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
  693.  
  694. Sped = 0
  695.  
  696. function ragplayer(cactus)
  697. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://131026421" S.Volume = 2 S:Play()
  698. cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
  699. if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
  700. cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
  701. makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
  702. maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
  703. end
  704. if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
  705. cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
  706. makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
  707. maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
  708. end
  709. if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
  710. cactus.Torso:FindFirstChild("Right Hip"):Destroy()
  711. makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
  712. maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
  713. end
  714. if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
  715. cactus.Torso:FindFirstChild("Left Hip"):Destroy()
  716. makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
  717. maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
  718. end
  719. cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15)
  720. end
  721. 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
  722.  
  723. 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
  724.  
  725. local hitz = false
  726. c.HumanoidRootPart.Touched:connect(function(Hit)
  727. if thing >= 100 then
  728. if hitz == false then hitz = true
  729. ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://386946017" S.Volume = 6 S:Play()
  730. wait(15)
  731. end
  732. end
  733. end)
  734.  
  735. function Spin()
  736. attack = true
  737. while attack == true do Sped = Sped + 0.25
  738. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1)
  739. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  740. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  741. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  742. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  743. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  744. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  745. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  746. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  747. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  748. swait()
  749. end
  750. end
  751.  
  752. SanicScreams = {498608864,156820723}   
  753.  
  754. Mouse.KeyDown:connect(function(key)
  755. if attack == true then return end
  756. if key == "q" then
  757. Spin()
  758. end
  759. if key == "e" then
  760. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://1034903243" S.Volume = 10 S:Play()
  761. wait(1.25)
  762. local Sanic  = SanicScreams[math.random(1,#SanicScreams)]
  763. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://"..Sanic S.Volume = 10 S:Play()
  764. spawn(function()
  765. 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
  766. local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame
  767. for i = 1,25 do
  768. SPM.Scale = SPM.Scale + Vector3.new(4,4,4)
  769. Sp.Transparency = Sp.Transparency + 1/25
  770. swait()
  771. end
  772. end)
  773. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://214444596" S.Volume = 10 S:Play()
  774. Sped = 10000000000
  775. end
  776. end)
  777.  
  778. Mouse.KeyUp:connect(function(key)
  779. if key == "q" then
  780. attack = false
  781. end
  782. end)
  783.  
  784. local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15)
  785. P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart"
  786. P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass"
  787. spawn(function()
  788. while true do
  789. P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z)
  790. swait()
  791. end
  792. end)
  793.  
  794. anim.Parent = nil
  795. sine = 0
  796.  
  797. game:GetService("RunService").Heartbeat:connect(function()
  798. if attack == false then
  799. thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  800. game.Workspace.CurrentCamera.FieldOfView = 70+thing/100
  801. if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1
  802. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1)
  803. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  804. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  805. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  806. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  807. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  808. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  809. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  810. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  811. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  812. elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then
  813. sine = sine + 1 Sped = Sped + 0.1
  814. if thing <= 200 then
  815. if S2.PlaybackSpeed >= 1 then
  816. S2.PlaybackSpeed = 1
  817. else
  818. S2.PlaybackSpeed = thing/80
  819. end
  820. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  821. S2.Volume = thing/20
  822. end
  823. if thing <= 200 then
  824. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  825. S2.Volume = thing/20
  826. else
  827. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  828. end
  829. if thing <= 100 then
  830. for i,v in pairs(c:children()) do
  831. if v.ClassName == "Part" then
  832. for i,v2 in pairs(v:children()) do
  833. if v2.ClassName == "Trail" then
  834. v2.Enabled = false
  835. v2.LightEmission = 1
  836. end
  837. end
  838. end
  839. end
  840. else
  841. for i,v in pairs(c:children()) do
  842. if v.ClassName == "Part" then
  843. for i,v2 in pairs(v:children()) do
  844. if v2.ClassName == "Trail" then
  845. v2.Lifetime = 2
  846. v2.Enabled = true
  847. end
  848. end
  849. end
  850. end
  851. end
  852. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1)
  853. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  854. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1)
  855. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  856. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1)
  857. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  858. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  859. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  860. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  861. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  862. else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0
  863. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  864. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  865. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  866. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  867. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  868. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  869. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  870. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  871. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  872. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  873. end
  874. for i,v in pairs (c:children()) do
  875. if v.ClassName == "Accessory" then
  876. for i,v2 in pairs (v:children()) do
  877. if v2.ClassName == "Part" then
  878. v2.Anchored = false
  879. end
  880. end
  881. end
  882. for i,v in pairs (c:children()) do
  883. if v.ClassName == "Part" then
  884. v.Anchored = false
  885. end
  886. end
  887. end
  888. end
  889. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement