Advertisement
Dust_Sans

Untitled

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