daily pastebin goal
0%
SHARE
TWEET

sanic he's on teh rawn

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