Advertisement
Void_scripter0

glitch

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