Advertisement
Axelpuff

Glitch FE

Aug 15th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.63 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173.  
  174. -- [ GlitchMaster ] --
  175. -- [ Cucumber Quest ] --
  176. wait()
  177. LoudVolume = false
  178. Music = true
  179. Player = owner
  180. c = owner.Character
  181. Head = c.Head
  182. anim = c.Humanoid.Animator
  183. rage = false
  184. Battle = false
  185. p = owner
  186. Music = false
  187. PhaseEnabled = true
  188. TeleportEnabled = true
  189. c.Archivable = true
  190. WholeBody = c:clone()
  191. local Effects = {}
  192. attack = false
  193. local attacking = false
  194. vt = Vector3.new
  195. bc = BrickColor.new
  196. br = BrickColor.random
  197. it = Instance.new
  198. cf = CFrame.new
  199. euler = CFrame.fromEulerAnglesXYZ
  200. angles = CFrame.Angles
  201. matr = math.random
  202. mouse = Player:GetMouse()
  203.  
  204.  
  205. local S10 = Instance.new("Sound") local S11 = Instance.new("ParticleEmitter")
  206.  
  207. c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
  208.  
  209. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  210. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  211. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  212. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  213. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  214. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  215. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  216. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  217. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  218. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  219. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  220. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  221. RS = c.Torso:FindFirstChild("Right Shoulder")
  222. LS = c.Torso:FindFirstChild("Left Shoulder")
  223. RH = c.Torso:FindFirstChild("Right Hip")
  224. LH = c.Torso:FindFirstChild("Left Hip")
  225. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  226. N = c.Torso:FindFirstChild("Neck")
  227. cf = CFrame.new
  228. ang = CFrame.Angles
  229. rd = math.rad
  230. rd2 = math.random
  231.  
  232. function swait(num)
  233. if num==0 or num==nil then
  234. game:service'RunService'.Heartbeat:wait(0)
  235. else
  236. for i=0,num do
  237. game:service'RunService'.Heartbeat:wait(0)
  238. end
  239. end
  240. end
  241.  
  242. function AnimDis()
  243. if c.Animate.Disabled == false then
  244. c.Animate.Disabled = true
  245. anim.Parent = nil
  246. else
  247. anim.Parent = c.Humanoid
  248. c.Animate.Disabled = false
  249. end
  250. end
  251. function lerpz(joint, prop, cfrmz, alp)
  252. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  253. end
  254. function resetlerp()
  255. RJ.C0 = RJC0
  256. RJ.C1 = RJC1
  257. N.C0 = NC0
  258. N.C1 = NC1
  259. RS.C0 = RSC0
  260. RS.C1 = RSC1
  261. LS.C0 = LSC0
  262. LS.C1 = LSC1
  263. RH.C0 = RHC0
  264. RH.C1 = RHC1
  265. LH.C0 = LHC0
  266. LH.C1 = LHC1
  267. end
  268.  
  269. game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  270. if InputObj.KeyCode == Enum.KeyCode.Slash then
  271. local finishEvent = nil
  272. isTyping = true
  273. finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  274. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  275. isTyping = false
  276. finishEvent:disconnect()
  277. end
  278. end)
  279. end
  280. end)
  281.  
  282. function VirusDestroy(H)
  283. spawn(function()
  284. for i = 1,1000 do
  285. H.Transparency = H.Transparency + 1/1000
  286. swait()
  287. end
  288. game.Debris:AddItem(H,3)H.Anchored = true
  289. end)
  290. end
  291.  
  292. function HitInfect(Part)
  293. Part.Touched:connect(function(Hit)
  294. if Hit.Size.Y <= 30 and Hit.Size.X <= 30 and Hit.Size.Z <= 30 and Hit.Transparency < 1 and Hit:findFirstChild("Glitch")== nil and Hit.Parent ~= c then
  295. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  296. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") HitInfect(Hit) VirusDestroy(Hit)
  297. for i = 1,2 do
  298. local tra = S11:clone() tra.Parent = Hit
  299. tra.Texture = "rbxassetid://744949545"
  300. tra.LightEmission = 0
  301. if i == 1 then
  302. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  303. tra.ZOffset = 2.5
  304. else
  305. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  306. tra.ZOffset = 3
  307. end
  308. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  309. tra.Lifetime = NumberRange.new(1,3)
  310. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize,0),NumberSequenceKeypoint.new(1,0,0)})
  311. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  312. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  313. tra.LockedToPart = true
  314. tra.Rate = 15
  315. tra.VelocityInheritance = 0.2
  316. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  317. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  318. Hit.Mesh.TextureId = "rbxassetid://64619306"
  319. end
  320. elseif Hit.Name ~= "Head" then
  321. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  322. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  323. end
  324. end
  325. end
  326. end)
  327. end
  328. function Virusify(Hit)
  329. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  330. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  331. for i = 1,2 do
  332. local tra = S11:clone() tra.Parent = Hit
  333. tra.Texture = "rbxassetid://744949545"
  334. tra.LightEmission = 0
  335. if i == 1 then
  336. tra.Name = "Glitch"
  337. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  338. tra.ZOffset = 2.5
  339. else
  340. tra.Name = "Glitch2"
  341. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  342. tra.ZOffset = 3
  343. end
  344. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  345. tra.Lifetime = NumberRange.new(1,3)
  346. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  347. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  348. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  349. tra.LockedToPart = true
  350. tra.Rate = 15+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  351. tra.VelocityInheritance = 0.2
  352. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  353. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  354. Hit.Mesh.TextureId = "rbxassetid://64619306"
  355. end
  356. elseif Hit.Name ~= "Head" then
  357. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  358. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  359. end
  360. end
  361. end
  362.  
  363. function Virusify2(Hit)
  364. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  365. for i = 1,2 do
  366. local tra = S11:clone() tra.Parent = Hit
  367. tra.Texture = "rbxassetid://744949545"
  368. tra.LightEmission = 0
  369. if i == 1 then
  370. tra.Name = "Glitch"
  371. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  372. tra.ZOffset = 2.5
  373. else
  374. tra.Name = "Glitch2"
  375. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  376. tra.ZOffset = 3
  377. end
  378. local PSize = (Hit.Size.Y)/4
  379. tra.Lifetime = NumberRange.new(0.5)
  380. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  381. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  382. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  383. tra.LockedToPart = true
  384. tra.Rate = 50
  385. tra.VelocityInheritance = 0.2
  386. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  387. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  388. Hit.Mesh.TextureId = "rbxassetid://64619306"
  389. end
  390. elseif Hit.Name ~= "Head" then
  391. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  392. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  393. end
  394. end
  395. end
  396.  
  397. function Virusify3(Hit)
  398. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  399. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  400. for i2 = 1,2 do
  401. for i = 1,2 do
  402. local tra = S11:clone() tra.Parent = Hit
  403. tra.Texture = "rbxassetid://744949545"
  404. tra.LightEmission = 0
  405. if i == 1 then
  406. tra.Name = "Glitch"
  407. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  408. tra.ZOffset = 2.5
  409. else
  410. tra.Name = "Glitch2"
  411. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  412. tra.ZOffset = 3
  413. end
  414. if i2 == 1 then
  415. tra.LockedToPart = true
  416. else
  417. tra.LockedToPart = false
  418. end
  419. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  420. tra.Lifetime = NumberRange.new(1,3)
  421. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  422. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  423. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  424. tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  425. tra.VelocityInheritance = 0.2
  426. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  427. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  428. Hit.Mesh.TextureId = "rbxassetid://64619306"
  429. end
  430. elseif Hit.Name ~= "Head" then
  431. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  432. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  433. end
  434. end
  435. end
  436. end
  437.  
  438. local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  439.  
  440. for i,v in pairs(c:children()) do
  441. if v.ClassName == "Accessory" then
  442. v:remove()
  443. end
  444. end
  445.  
  446. if c:findFirstChild("Body Colors") then
  447. c:findFirstChild("Body Colors"):remove()
  448. end
  449. for i,v in pairs (c:children()) do
  450. if v.ClassName == "Part" then
  451. if v.Name ~= "HumanoidRootPart" then
  452. HitInfect(v)
  453. v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
  454. for i2 = 1,2 do
  455. for i = 1,2 do
  456. local tra = S11:clone() tra.Parent = v
  457. tra.Texture = "rbxassetid://744949545"
  458. tra.LightEmission = 0
  459. if i == 1 then
  460. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  461. tra.ZOffset = 2.5
  462. else
  463. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  464. tra.ZOffset = 3
  465. end
  466. tra.Rate = 15
  467. tra.Lifetime = NumberRange.new(1,3)
  468. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
  469. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  470. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  471. if i2 == 1 then
  472. tra.LockedToPart = true
  473. tra.Rate = 10
  474. else
  475. tra.LockedToPart = false
  476. tra.ZOffset = tra.ZOffset - 2.25
  477. end
  478. tra.VelocityInheritance = 0.2
  479. end
  480. if v.Name ~= "Head" then
  481. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  482. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  483. end
  484. end
  485. end
  486. end
  487. end
  488. c.Head.Transparency = 1
  489. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  490. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  491. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  492. wait()
  493. c.Head:FindFirstChild("face").Texture = ""
  494. if c:findFirstChild("Shirt")~=nil then
  495. c:findFirstChild("Shirt"):remove()
  496. end
  497. if c:findFirstChild("Pants")~=nil then
  498. c:findFirstChild("Pants"):remove()
  499. end
  500.  
  501. local flying = false
  502. local deb = true
  503. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  504. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  505. local maxspeed = 25
  506. local speed = 0
  507.  
  508. function Fly()
  509. local bg = Instance.new("BodyGyro", c.HumanoidRootPart)
  510. bg.P = 100000 bg.D = 100
  511. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  512. bg.cframe = c.HumanoidRootPart.CFrame
  513. local bv = Instance.new("BodyVelocity", c.HumanoidRootPart)
  514. bv.velocity = Vector3.new(0,0.1,0)
  515. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  516. repeat wait()
  517. c.Humanoid.PlatformStand = true
  518. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  519. speed = speed+1+(speed/maxspeed)
  520. if speed > maxspeed then
  521. speed = maxspeed
  522. end
  523. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  524. speed = speed-1
  525. if speed < 0 then
  526. speed = 0
  527. end
  528. end
  529. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  530. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  531. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  532. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  533. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  534. else
  535. bv.velocity = Vector3.new(0,0.1,0)
  536. end
  537. until not flying
  538. ctrl = {f = 0, b = 0, l = 0, r = 0}
  539. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  540. speed = 0
  541. bv:Destroy()
  542. c.Humanoid.PlatformStand = false
  543. end
  544.  
  545. Cloud = false
  546. function CloudForm()
  547. if Cloud == false then
  548. S.Volume = 1
  549. attack = true Cloud = true
  550. for i = 1,10 do
  551. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  552. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  553. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  554. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  555. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  556. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  557. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  558. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  559. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  560. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  561. swait()
  562. end
  563. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
  564. local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
  565. Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
  566. Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Really black") Cl.Name = "Cloud"
  567. HitInfect(Cl)
  568. for i2 = 1,2 do
  569. for i = 1,2 do
  570. local tra = S11:clone() tra.Parent = CL
  571. tra.Texture = "rbxassetid://744949545"
  572. tra.LightEmission = 0
  573. if i == 1 then
  574. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  575. tra.ZOffset = 2.5
  576. else
  577. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  578. tra.ZOffset = 3
  579. end
  580. tra.Lifetime = NumberRange.new(1,3)
  581. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  582. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  583. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  584. if i2 == 1 then
  585. tra.LockedToPart = true
  586. tra.Speed = NumberRange.new(0.5)
  587. else
  588. tra.LockedToPart = false
  589. tra.Speed = NumberRange.new(4)
  590. end
  591. tra.Rate = 250
  592. tra.VelocityInheritance = 0.2
  593. end
  594. end
  595. local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
  596. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  597. for i = 1,80 do
  598. M.Scale = Vector3.new(i/4,i/4,i/4)
  599. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  600. swait()
  601. end
  602. flying = true attack = false
  603. Fly()
  604. else
  605. attack = true S.Volume = 0.4
  606. if c:findFirstChild("Cloud") ~= nil then
  607. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  608. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  609. for i = 1,20 do
  610. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  611. swait()
  612. end
  613. c.HumanoidRootPart.Smile:remove()
  614. end
  615. for i,v in pairs(c:findFirstChild("Cloud"):children()) do
  616. if v.Name == "Glitch" then
  617. v.Enabled = false
  618. end
  619. end
  620. for i = 1,80 do
  621. c:findFirstChild("Cloud").Mesh.Scale = c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
  622. swait()
  623. end
  624. game.Debris:AddItem(c:findFirstChild("Cloud"),2)
  625. Cloud = false end flying = false
  626. wait(2)
  627. attack = false
  628. end
  629. end
  630.  
  631. function CloudFace()
  632. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  633. for i = 1,20 do
  634. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  635. swait()
  636. end
  637. c.HumanoidRootPart.Smile:remove()
  638. else
  639. local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
  640. local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://915081021"
  641. end
  642. end
  643.  
  644.  
  645. function VirusExplosion(Pos)
  646. for i = 1,10 do
  647. for i2 = 1,8 do
  648. local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
  649. V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  650. V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
  651. end
  652. swait()
  653. end
  654. end
  655.  
  656. function VirusFade(H)
  657. spawn(function()
  658. for i = 1,10 do
  659. H.Transparency = H.Transparency + 1/10
  660. swait()
  661. end
  662. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  663. game.Debris:AddItem(H,0.2)
  664. end)
  665. end
  666.  
  667. function VirusFade2(H)
  668. spawn(function()
  669. for i = 1,25 do
  670. H.Transparency = H.Transparency + 1/25
  671. swait()
  672. end
  673. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  674. game.Debris:AddItem(H,4)
  675. end)
  676. end
  677.  
  678. function HammerSlam()
  679. c.HumanoidRootPart.Anchored = true
  680. attack = true
  681. AnimDis()
  682. for i = 1,15 do
  683. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
  684. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
  685. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y
  686. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
  687. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  688. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  689. swait()
  690. end
  691. local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
  692. local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
  693. local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H W.C0 = CFrame.new(0,-2,0)
  694. local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
  695. Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
  696. for i = 1,45 do
  697. W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
  698. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
  699. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
  700. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y
  701. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
  702. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  703. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  704. swait()
  705. end
  706. W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
  707. for i = 1,15 do
  708. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
  709. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
  710. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y
  711. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
  712. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  713. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  714. swait()
  715. end
  716. local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
  717. for i = 1,45 do
  718. for i2 = 1,8 do
  719. local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
  720. V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  721. V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
  722. end
  723. swait()
  724. end
  725. H.Anchored = true H2.Anchored = true
  726. W:remove() W2:remove()
  727. c.HumanoidRootPart.Anchored = false
  728. AnimDis()
  729. attack = false
  730. spawn(function()
  731. wait(3) H.Transparency = 1 H2.Transparency = 1
  732. H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
  733. H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
  734. game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
  735. end)
  736. end
  737.  
  738. function Missiles()
  739. attack = true
  740. local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
  741. Mis.CFrame = CFrame.new(Mis.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p+Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)))
  742. Mis.CanCollide = false local BV = Instance.new("BodyVelocity",Mis)BV.Velocity = Mis.CFrame.lookVector*150 BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  743. local hit = false
  744. Mis.Touched:connect(function(Hit)
  745. if Hit.Parent ~= c then
  746. if hit == false then hit = true
  747. Mis.Anchored = true VirusFade2(Mis)
  748. VirusExplosion(CFrame.new(Mis.Position))
  749. end
  750. end
  751. end)
  752. wait(0.1)
  753. attack = false
  754. end
  755.  
  756. mouse.KeyDown:connect(function(key)
  757. if c.Humanoid.Health <= 0 then return end
  758. if attack == true then return end
  759. if Cloud == true then
  760. if key == "f" then
  761. CloudFace()
  762. end
  763. if key == "z" then
  764. Missiles()
  765. end
  766. elseif Cloud == false then
  767. if key == "z" then
  768. HammerSlam()
  769. end
  770. end
  771. if key == "m" then
  772. CloudForm()
  773. end
  774. end)
  775.  
  776. local LastPos = c.HumanoidRootPart.CFrame
  777. local Resetting = false
  778. function Reset()
  779. if Resetting == false then Resetting = true
  780. c.Parent = nil
  781. c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
  782. for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
  783. local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
  784. local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
  785. makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
  786. local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
  787. makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
  788. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  789. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  790. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  791. local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
  792. makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
  793. local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
  794. makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
  795. local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
  796. makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
  797. local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
  798. makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
  799. c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
  800. Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
  801. end
  802. end
  803. c.Humanoid.Died:connect(Reset)
  804.  
  805. function onKeyPress(inputObject, gameProcessedEvent)
  806. if isTyping == true then return end
  807. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
  808. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
  809. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
  810. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
  811. end
  812. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  813.  
  814. function onKeyLift(inputObject, gameProcessedEvent)
  815. if isTyping == true then return end
  816. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
  817. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
  818. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
  819. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
  820. end
  821. game:GetService("UserInputService").InputEnded:connect(onKeyLift)
  822.  
  823. WholeBody = c:clone()
  824.  
  825. function makejoint(paren, co, ci, parto, parti, nam)local gloo = Instance.new("Motor6D")gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  826. idletime = 0
  827. sine = 0
  828. game:GetService("RunService").RenderStepped:connect(function()
  829. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
  830. if Resetting == false then
  831. if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then
  832. Reset()
  833. else
  834. LastPos = c.HumanoidRootPart.CFrame
  835. end
  836. if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
  837. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  838. makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
  839. end
  840. if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
  841. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  842. makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
  843. end
  844. if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
  845. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  846. makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
  847. end
  848. if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
  849. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  850. makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
  851. end
  852. local r = math.random(1,15)
  853. if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
  854. if attack == false and Cloud == false then
  855. local r2 = math.random(1,50)
  856. if r2 == 1 then
  857. lerpz(RJ, "C0", RJC0 * cf(math.random(-5,5)/10, math.random(-5,5)/10, math.random(-5,5)/10) * ang(rd(0), rd(0), rd(0)), 1)-- Y, X, Z
  858. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
  859. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  860. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  861. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  862. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  863. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  864. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  865. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  866. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  867. end
  868. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
  869. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
  870. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  871. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  872. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  873. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  874. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  875. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  876. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  877. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  878. end
  879. end
  880. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement