Advertisement
Guest User

Untitled

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