Hugo1234cool

Untitled

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