Advertisement
Oscar55555

Untitled

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