Advertisement
vallentganteng

idk maybe a egg

May 17th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. script.Name = "∞"
  2. local function degg()
  3. local function makesound(id,loop,parent)
  4. local sound = Instance.new("Sound",parent)
  5. sound.Looped = loop
  6. sound.Volume = 4
  7. if id==12222242 then
  8. sound.TimePosition = 1
  9. end
  10. sound.SoundId = "rbxassetid://"..id
  11. sound:Play()
  12. sound.Ended:Connect(function()
  13. if loop==false then
  14. sound:Destroy()
  15. end
  16. end)
  17. end
  18.  
  19. local players = game:GetService("Players")
  20. local deggstrution = Instance.new("Model",workspace)
  21. deggstrution.Name = ""
  22.  
  23. local Head = Instance.new("Part",deggstrution)
  24. Head.Name = "Head"
  25. Head.Material = Enum.Material.ForceField
  26. Head.BrickColor = BrickColor.new("Institutional white")
  27. Head.Size = Vector3.new(2, 2.4, 2)
  28. Head.Position = Vector3.new(55,50,50)
  29. Head.Massless = true
  30. Head.Shape = "Ball"
  31. local db = true
  32.  
  33. local val = Instance.new("StringValue")
  34. val.Value="lolno"
  35. makesound(141396566,true,Head)
  36.  
  37. local at1 = Instance.new("Attachment",Head)
  38. at1.Orientation = Vector3.new(-0, 180, 90)
  39.  
  40. local p1 = Instance.new("Part",workspace)
  41. p1.Anchored = true
  42. p1.CanCollide = false
  43. p1.Transparency = 1
  44.  
  45. local at2 = Instance.new("Attachment",p1)
  46. at2.Orientation = Vector3.new(0, 0, 90)
  47.  
  48. local ao = Instance.new("AlignOrientation",Head)
  49. ao.Attachment0 = at2
  50. ao.Attachment1 = at1
  51. ao.PrimaryAxisOnly = true
  52. ao.ReactionTorqueEnabled = true
  53.  
  54. local mes = Instance.new("SpecialMesh",Head)
  55. mes.MeshType = Enum.MeshType.FileMesh
  56. mes.MeshId = "rbxassetid://1527559"
  57.  
  58. local BG = Instance.new("BillboardGui",Head)
  59. BG.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
  60. BG.MaxDistance = 100
  61. BG.Size = UDim2.new(10,0,2,0)
  62.  
  63. local hb = Instance.new("TextLabel",BG)
  64. hb.AnchorPoint = Vector2.new(0,.5)
  65. hb.BackgroundColor3 = Color3.new(0, 255, 0)
  66. hb.BorderColor3 = Color3.new(0,0,0)
  67. hb.BorderSizePixel = 10
  68. hb.Position = UDim2.new(0, 0,0.5, 0)
  69. hb.Size = UDim2.new(1, 0,1, 0)
  70. hb.Text = ''
  71.  
  72. local BG2 = Instance.new("BillboardGui",Head)
  73. BG2.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
  74. BG2.MaxDistance = 100
  75. BG2.Size = UDim2.new(10,0,2,0)
  76.  
  77. local hb2 = Instance.new("TextLabel",BG2)
  78. hb2.AnchorPoint = Vector2.new(0.5, 0.5)
  79. hb2.BackgroundTransparency = 1
  80. hb2.BorderColor3 = Color3.new(0,0,0)
  81. hb2.BorderSizePixel = 0
  82. hb2.Position = UDim2.new(0.5, 0,0.5, 0)
  83. hb2.Size = UDim2.new({1, 0},{1, 0})
  84. hb2.Text = '1'
  85. hb2.TextStrokeTransparency = 0
  86. hb2.Font = Enum.Font.SciFi
  87. hb2.TextScaled = true
  88. hb2.TextColor3 = Color3.new(255, 255, 255)
  89. hb2.Size = UDim2.new(1, 0,1, 0)
  90.  
  91. local BG3 = Instance.new("BillboardGui",Head)
  92. BG3.ExtentsOffsetWorldSpace = Vector3.new(0, 7.5, 0)
  93. BG3.MaxDistance = 100
  94. BG3.Size = UDim2.new(10,0,2,0)
  95.  
  96. local hb3 = Instance.new("TextLabel",BG3)
  97. hb3.AnchorPoint = Vector2.new(0.5, 0.5)
  98. hb3.BackgroundTransparency = 1
  99. hb3.BorderColor3 = Color3.new(0,0,0)
  100. hb3.BorderSizePixel = 0
  101. hb3.Position = UDim2.new(0.5, 0,0.5, 0)
  102. hb3.Size = UDim2.new({1, 0},{1, 0})
  103. hb3.Font = Enum.Font.SciFi
  104. hb3.TextScaled = true
  105. hb3.TextColor3 = Color3.new(255, 255, 255)
  106. hb3.Size = UDim2.new(1, 0,1, 0)
  107. hb3.Text = "THE DISRESPECT EGG (YOU'VE BEEN VERY ABUSIVE)"
  108.  
  109. local level = 1
  110.  
  111. local dhum = Instance.new("Humanoid",deggstrution)
  112. dhum.Name="∞"
  113. local fal = true
  114. dhum.MaxHealth = 1
  115. dhum.Health = 1
  116.  
  117. local health = 1
  118. local tar1e = nil
  119.  
  120. local function attach()
  121. local player = nil
  122. while true do
  123. local rnt = math.random(1,#players:GetChildren())
  124. local wpl = players:GetChildren()[rnt]
  125. if wpl.Character~=nil then
  126. local wch = wpl.Character
  127. local whead = wch:FindFirstChild'Head'
  128. local whum = wch:FindFirstChildWhichIsA'Humanoid'
  129. if whead and whum and wch:FindFirstChild'IceEgg'==nil and wch:FindFirstChildWhichIsA("BodyVelocity",true)==nil then
  130. if whum.Health>0 then
  131. player = wpl
  132. if whead.Position.Y>Head.Position.Y + 4 or whead.Position.Y<Head.Position.Y - 4 then
  133. Head.Position = whead.Position
  134. end
  135. end
  136. end
  137. end
  138. wait()
  139. if player~=nil then
  140. break
  141. end
  142. end
  143. if Head:FindFirstChildWhichIsA("LineForce")then
  144. Head:FindFirstChildWhichIsA("LineForce"):Destroy()
  145. end
  146. if Head:FindFirstChildWhichIsA("Beam")then
  147. Head:FindFirstChildWhichIsA("Beam"):Destroy()
  148. end
  149. local at2 = Instance.new("Attachment",player.Character:FindFirstChild'Head')
  150.  
  151. local lf = Instance.new("LineForce",Head)
  152. lf.Attachment0 = at1
  153. lf.Attachment1 = at2
  154. lf.Magnitude = 1000
  155. lf.ApplyAtCenterOfMass = true
  156.  
  157. local beam = Instance.new("Beam",Head)
  158. beam.Attachment0 = at1
  159. beam.Attachment1 = at2
  160. beam.FaceCamera = true
  161. end
  162.  
  163. attach()
  164.  
  165. dhum.HealthChanged:Connect(function()
  166. if fal then
  167. fal = false
  168. health = health - 1
  169. hb2.Text = tostring(health)
  170. dhum.Health = health
  171. hb.Size = UDim2.new(dhum.Health / (10^level/10),0,1,0)
  172. if dhum.Health<=0 then
  173. if level==4 then
  174. else
  175. level = level + 1
  176. dhum.MaxHealth = (10^level)/10
  177. dhum.Health = (10^level)/10
  178. health = (10^level)/10
  179. hb.Size = UDim2.new(1,0,1,0)
  180. hb2.Text = tostring(dhum.Health)
  181. if level==4 then
  182. hb.BackgroundColor3 = Color3.new(255, 0, 0)
  183. elseif level==3 then
  184. hb.BackgroundColor3 = Color3.new(255, 176, 0)
  185. elseif level==2 then
  186. hb.BackgroundColor3 = Color3.new(255, 255, 0)
  187. end
  188. end
  189. end
  190. wait(.01)
  191. fal = true
  192.  
  193. end
  194. end)
  195. Head.ChildAdded:Connect(function(ch)
  196. if ch:IsA'LineForce'then
  197. ch.Changed:Connect(function(prop)
  198. if prop=='Attachment0'then
  199. if ch.Attachment0==nil then
  200. attach()
  201.  
  202. else
  203.  
  204. end
  205.  
  206. end
  207. end)
  208. end
  209. end)
  210. local db = true
  211. Head.Touched:Connect(function(p)
  212. local atk = math.random(1,4)
  213. if p.Parent:FindFirstChildWhichIsA'Humanoid'and db and p.Parent.Name~=""then
  214. if p.Parent:FindFirstChildWhichIsA'Humanoid'.Health>0 then
  215. if atk==1 then
  216. db = false
  217. local ex = Instance.new("Explosion",Head)
  218. ex.BlastPressure = 100
  219. ex.DestroyJointRadiusPercent = 0.95
  220. ex.Position = Head.Position
  221. ex.ExplosionType = Enum.ExplosionType.CratersAndDebris
  222. wait(.5)
  223. db = true
  224. ex:Destroy()
  225. attach()
  226. elseif atk==2 then
  227. db = false
  228. local pchar = p.Parent
  229. for _,v in pairs(pchar:GetChildren())do
  230. if v:IsA'BasePart'then
  231. v.Anchored = true
  232. end
  233. end
  234.  
  235. local ice = Instance.new("Part",pchar)
  236. ice.Material = Enum.Material.ForceField
  237. ice.Anchored = true
  238. ice.BrickColor = BrickColor.new("Bright bluish green")
  239. ice.Position = pchar:FindFirstChild'Head'.Position
  240. ice.Size = Vector3.new(4,6,4)
  241. ice.CanCollide = false
  242. ice.Name = "IceEgg"
  243.  
  244. wait(.5)
  245. attach()
  246. db = true
  247. elseif atk==3 then
  248. db = false
  249.  
  250. local phe = p.Parent:FindFirstChild'Head'
  251. if phe then
  252. local bv = Instance.new("BodyVelocity",phe)
  253. bv.MaxForce= Vector3.new(0, 4000, 0)
  254. bv.Velocity = Vector3.new(0, 3, 0)
  255.  
  256. for _,v in pairs(p.Parent:GetDescendants())do
  257. if v:IsA'BasePart' then
  258. v.Massless = true
  259. end
  260. end
  261. end
  262. local hum = p.Parent:FindFirstChildWhichIsA('Humanoid',true)
  263. if hum then
  264.  
  265. end
  266. wait(.5)
  267. attach()
  268. db = true
  269. elseif atk==4 then
  270. local hum1 = p.Parent:FindFirstChildWhichIsA('Humanoid',true)
  271. if hum1 then
  272. hum1.PlatformStand = true
  273. end
  274. end
  275.  
  276. end
  277. end
  278. end)
  279.  
  280. end
  281. degg()
  282. workspace.DescendantRemoving:Connect(function(d)
  283. if (d.Name=="" and d:IsA'Model' and workspace:FindFirstChild''==nil) then
  284. degg()
  285. elseif d.Parent~=workspace and d.Name=="Head"then
  286. if d.Parent.Name=="" then
  287. if d.Name=="Head" then
  288. game:GetService'Debris':AddItem(d,.1)
  289. else
  290. d:Destroy()
  291. end
  292. degg()
  293. end
  294. end
  295. end)
  296. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement