Advertisement
1nubloku

ava

Oct 10th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. repStorage = game:GetService("ReplicatedStorage")
  2. if repStorage:FindFirstChild("remotess") == nil then
  3. HOLDER = Instance.new("Folder", repStorage)
  4. HOLDER.Name = "remotess"
  5. remote = Instance.new("RemoteEvent", HOLDER)
  6. remote.Name = "remote1"
  7. remote2 = Instance.new("RemoteEvent", HOLDER)
  8. remote2.Name = "remote23"
  9. else
  10. repStorage:WaitForChild("remotess"):Destroy()
  11. HOLDER = Instance.new("Folder", repStorage)
  12. HOLDER.Name = "remotess"
  13. remote = Instance.new("RemoteEvent", HOLDER)
  14. remote.Name = "remote1"
  15. remote2 = Instance.new("RemoteEvent", HOLDER)
  16. remote2.Name = "remote23"
  17. end
  18. DEAD = false
  19. wait(2)
  20.  
  21. Player = game:GetService("Players").Felipe_MasterBr
  22. Character = Player.Character
  23. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  24. Humanoid.Name = "Mr Pixels"
  25. Torso = Character.Torso
  26.  
  27. local ANIMATOR = Humanoid.Animator
  28. local ANIMATE = Character.Animate
  29.  
  30. local S = Instance.new("Sound")
  31. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  32. local NEWSOUND = nil
  33. coroutine.resume(coroutine.create(function()
  34. NEWSOUND = S:Clone()
  35. NEWSOUND.Parent = PARENT
  36. NEWSOUND.Volume = VOLUME
  37. NEWSOUND.Pitch = PITCH
  38. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  39. NEWSOUND:play()
  40. if DOESLOOP == true then
  41. NEWSOUND.Looped = true
  42. else
  43. repeat wait(1) until NEWSOUND.Playing == false
  44. NEWSOUND:remove()
  45. end
  46. end))
  47. return NEWSOUND
  48. end
  49.  
  50. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  51. ArtificialHB = Instance.new("BindableEvent", script)
  52. ArtificialHB.Name = "ArtificialHB"
  53.  
  54. script:WaitForChild("ArtificialHB")
  55.  
  56. frame = Frame_Speed
  57. tf = 0
  58. allowframeloss = false
  59. tossremainder = false
  60. lastframe = tick()
  61. script.ArtificialHB:Fire()
  62.  
  63. game:GetService("RunService").Heartbeat:connect(function(s, p)
  64. tf = tf + s
  65. if tf >= frame then
  66. if allowframeloss then
  67. script.ArtificialHB:Fire()
  68. lastframe = tick()
  69. else
  70. for i = 1, math.floor(tf / frame) do
  71. script.ArtificialHB:Fire()
  72. end
  73. lastframe = tick()
  74. end
  75. if tossremainder then
  76. tf = 0
  77. else
  78. tf = tf - frame * math.floor(tf / frame)
  79. end
  80. end
  81. end)
  82.  
  83. function swait(num)
  84. if num == 0 or num == nil then
  85. ArtificialHB.Event:wait()
  86. else
  87. for i = 1, num do
  88. ArtificialHB.Event:wait()
  89. end
  90. end
  91. end
  92.  
  93. function guiCheck()
  94. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  95. if v.PlayerGui:FindFirstChild("pixelrep2") == nil then
  96. print("lol")
  97. local avee = script.pixelrep2:Clone()
  98. avee.Disabled = false
  99. avee.Parent = v.PlayerGui
  100. end
  101. end
  102. end
  103.  
  104. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  105. if v.PlayerGui:FindFirstChild("pixelrep2") == nil then
  106. print("lol")
  107. local avee = script.pixelrep2:Clone()
  108. avee.Disabled = false
  109. avee.Parent = v.PlayerGui
  110. else
  111. v.PlayerGui:WaitForChild("pixelrep2"):Destroy()
  112. print("lol2")
  113. local avee = script.pixelrep2:Clone()
  114. avee.Disabled = false
  115. avee.Parent = v.PlayerGui
  116. end
  117. end
  118.  
  119. sick = CreateSound(2071274388, Torso, 4, 1, true)
  120. sick.Name = "sickomode"
  121.  
  122. SONG = 2071274388
  123.  
  124. remote.OnServerEvent:Connect(function(player, request, ...)
  125. remote:FireAllClients(request, ...)
  126. end)
  127.  
  128. remote2.OnServerEvent:Connect(function(plr, id)
  129. SONG = id
  130. end)
  131.  
  132. Humanoid.Died:Connect(function()
  133. DEAD = true
  134. sick:Remove()
  135. end)
  136. sickomode = sick.TimePosition
  137.  
  138. while true do
  139. swait()
  140. guiCheck()
  141. ANIMATE.Parent = nil
  142. sickomode = sick.TimePosition
  143. if Torso:FindFirstChild("sickomode") == nil then
  144. sick = CreateSound(2071274388, Torso, 4, 1, true)
  145. sick.Name = "sickomode"
  146. sick.TimePosition = sickomode
  147. end
  148. Humanoid.MaxHealth = 999999999999999999*999999999999999999*999999999999999999*999999999999999999
  149. Humanoid.Health = Humanoid.MaxHealth
  150. if DEAD == false then
  151. sick.SoundId = "rbxassetid://"..SONG
  152. sick.Looped = true
  153. sick.Pitch = 1
  154. sick.Volume = 4
  155. sick.Playing = true
  156. sick.Parent = Torso
  157. end
  158. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement