Advertisement
SSTheEditer

( The Glitch but it's FE? )

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