Advertisement
Gerard_games

Magnet sim open egg gui

Jan 12th, 2019
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.91 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local plr = game:GetService("Players").LocalPlayer
  6. local screengui = plr.PlayerGui.GameHUD
  7. local Frame = Instance.new("Frame")
  8. local Top = Instance.new("TextLabel")
  9. local Eggs = Instance.new("ScrollingFrame")
  10. local CommonEgg = Instance.new("TextButton")
  11. local UncommonEgg = Instance.new("TextButton")
  12. local RareEgg = Instance.new("TextButton")
  13. local EpicEgg = Instance.new("TextButton")
  14. local MythicalEgg = Instance.new("TextButton")
  15. local CatacylsmicEgg = Instance.new("TextButton")
  16. local PsychadelicEgg = Instance.new("TextButton")
  17. local MemeEgg = Instance.new("TextButton")
  18. local SuperEgg = Instance.new("TextButton")
  19. local LegendaryEgg = Instance.new("TextButton")
  20. local UIListLayout = Instance.new("UIListLayout")
  21. local Utility = Instance.new("ScrollingFrame")
  22. local UIListLayout_2 = Instance.new("UIListLayout")
  23. local Animations = Instance.new("TextButton")
  24. local BackpackShop = Instance.new("TextButton")
  25. local ChestShop = Instance.new("TextButton")
  26. local MagnetShop = Instance.new("TextButton")
  27. local RebirthShop = Instance.new("TextButton")
  28.  
  29. animationson = true
  30. common = false
  31. uncommon = false
  32. rare = false
  33. legendary = false
  34. epic = false
  35. mythical = false
  36. Catacylsmic = false
  37. Psychadelic = false
  38. meme = false
  39. super = false
  40.  
  41. --Properties:
  42. ScreenGui.Parent = game.CoreGui
  43.  
  44. Frame.Parent = ScreenGui
  45. Frame.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  46. Frame.BackgroundTransparency = 0.40000000596046
  47. Frame.BorderColor3 = Color3.new(1, 1, 1)
  48. Frame.ClipsDescendants = true
  49. Frame.Position = UDim2.new(0.260750413, 0, 0.226044223, 0)
  50. Frame.Size = UDim2.new(0, 503, 0, 270)
  51. Frame.Draggable = true
  52. Frame.Active = true
  53.  
  54. Top.Name = "Top"
  55. Top.Parent = Frame
  56. Top.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  57. Top.BackgroundTransparency = 1
  58. Top.Position = UDim2.new(0.113320082, 0, 0.0347711071, 0)
  59. Top.Size = UDim2.new(0, 388, 0, 25)
  60. Top.Font = Enum.Font.SourceSans
  61. Top.Text = "Magnet Simulator Useless Gui"
  62. Top.TextColor3 = Color3.new(1, 1, 1)
  63. Top.TextSize = 18
  64. Top.TextStrokeColor3 = Color3.new(0.498039, 0.498039, 0.498039)
  65.  
  66. Eggs.Name = "Eggs"
  67. Eggs.Parent = Frame
  68. Eggs.BackgroundColor3 = Color3.new(1, 1, 1)
  69. Eggs.BackgroundTransparency = 1
  70. Eggs.Position = UDim2.new(-0.00343641266, 0, 0.15699327, 0)
  71. Eggs.Size = UDim2.new(0, 260, 0, 229)
  72.  
  73. CommonEgg.Name = "Common Egg"
  74. CommonEgg.Parent = Eggs
  75. CommonEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  76. CommonEgg.Position = UDim2.new(0.167008057, 0, 0.189287469, 0)
  77. CommonEgg.Size = UDim2.new(0, 233, 0, 34)
  78. CommonEgg.AutoButtonColor = false
  79. CommonEgg.Font = Enum.Font.Cartoon
  80. CommonEgg.Text = "Common Egg"
  81. CommonEgg.TextColor3 = Color3.new(1, 1, 1)
  82. CommonEgg.TextSize = 18
  83. CommonEgg.TextStrokeTransparency = 0
  84. CommonEgg.TextWrapped = true
  85. CommonEgg.MouseButton1Click:connect(function()
  86. if common == true then common = false print("Disabled")
  87. CommonEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  88. elseif
  89. common == false then common = true print("Enabled")
  90. CommonEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  91. end
  92. opencommon()
  93. end)
  94.  
  95. UncommonEgg.Name = "Uncommon Egg"
  96. UncommonEgg.Parent = Eggs
  97. UncommonEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  98. UncommonEgg.Position = UDim2.new(0.187008053, 0, -0.10700883, 0)
  99. UncommonEgg.Size = UDim2.new(0, 233, 0, 34)
  100. UncommonEgg.AutoButtonColor = false
  101. UncommonEgg.Font = Enum.Font.Cartoon
  102. UncommonEgg.Text = "Uncommon Egg"
  103. UncommonEgg.TextColor3 = Color3.new(1, 1, 1)
  104. UncommonEgg.TextSize = 18
  105. UncommonEgg.TextStrokeTransparency = 0
  106. UncommonEgg.TextWrapped = true
  107. UncommonEgg.MouseButton1Click:connect(function()
  108. if uncommon == true then uncommon = false print("Disabled")
  109. UncommonEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  110. elseif
  111. uncommon == false then uncommon = true print("Enabled")
  112. UncommonEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  113. end
  114. openuncommon()
  115. end)
  116.  
  117. RareEgg.Name = "Rare Egg"
  118. RareEgg.Parent = Eggs
  119. RareEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  120. RareEgg.Position = UDim2.new(0.167008057, 0, 0.189287469, 0)
  121. RareEgg.Size = UDim2.new(0, 233, 0, 34)
  122. RareEgg.AutoButtonColor = false
  123. RareEgg.Font = Enum.Font.Cartoon
  124. RareEgg.Text = "Rare Egg"
  125. RareEgg.TextColor3 = Color3.new(1, 1, 1)
  126. RareEgg.TextSize = 18
  127. RareEgg.TextStrokeTransparency = 0
  128. RareEgg.TextWrapped = true
  129. RareEgg.MouseButton1Click:connect(function()
  130. if rare == true then rare = false print("Disabled")
  131. RareEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  132. elseif
  133. rare == false then rare = true print("Enabled")
  134. RareEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  135. end
  136. openrare()
  137. end)
  138.  
  139. EpicEgg.Name = "Epic Egg"
  140. EpicEgg.Parent = Eggs
  141. EpicEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  142. EpicEgg.Position = UDim2.new(0.167008057, 0, 0.18558377, 0)
  143. EpicEgg.Size = UDim2.new(0, 233, 0, 34)
  144. EpicEgg.AutoButtonColor = false
  145. EpicEgg.Font = Enum.Font.Cartoon
  146. EpicEgg.Text = "Epic Egg"
  147. EpicEgg.TextColor3 = Color3.new(1, 1, 1)
  148. EpicEgg.TextSize = 18
  149. EpicEgg.TextStrokeTransparency = 0
  150. EpicEgg.TextWrapped = true
  151. EpicEgg.MouseButton1Click:connect(function()
  152. if epic == true then epic = false print("Disabled")
  153. EpicEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  154. elseif
  155. epic == false then epic = true print("Enabled")
  156. EpicEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  157. end
  158. openepic()
  159. end)
  160.  
  161.  
  162. MythicalEgg.Name = "Mythical Egg"
  163. MythicalEgg.Parent = Eggs
  164. MythicalEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  165. MythicalEgg.Position = UDim2.new(0.28129378, 0, -0.801662743, 0)
  166. MythicalEgg.Size = UDim2.new(0, 233, 0, 34)
  167. MythicalEgg.AutoButtonColor = false
  168. MythicalEgg.Font = Enum.Font.Cartoon
  169. MythicalEgg.Text = "Mythical Egg"
  170. MythicalEgg.TextColor3 = Color3.new(1, 1, 1)
  171. MythicalEgg.TextSize = 18
  172. MythicalEgg.TextStrokeTransparency = 0
  173. MythicalEgg.TextWrapped = true
  174. MythicalEgg.MouseButton1Click:connect(function()
  175. if mythical == true then mythical = false print("Disabled")
  176. MythicalEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  177. elseif
  178. mythical == false then mythical = true print("Enabled")
  179. MythicalEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  180. end
  181. openmythical()
  182. end)
  183.  
  184. CatacylsmicEgg.Name = "Catacylsmic Egg"
  185. CatacylsmicEgg.Parent = Eggs
  186. CatacylsmicEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  187. CatacylsmicEgg.Position = UDim2.new(0.28129378, 0, -0.801662743, 0)
  188. CatacylsmicEgg.Size = UDim2.new(0, 233, 0, 34)
  189. CatacylsmicEgg.AutoButtonColor = false
  190. CatacylsmicEgg.Font = Enum.Font.Cartoon
  191. CatacylsmicEgg.Text = "Catacylsmic Egg (Rebirth 2)"
  192. CatacylsmicEgg.TextColor3 = Color3.new(1, 1, 1)
  193. CatacylsmicEgg.TextSize = 18
  194. CatacylsmicEgg.TextStrokeTransparency = 0
  195. CatacylsmicEgg.TextWrapped = true
  196. CatacylsmicEgg.MouseButton1Click:connect(function()
  197. if Catacylsmic == true then Catacylsmic = false print("Disabled")
  198. CatacylsmicEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  199. elseif
  200. Catacylsmic == false then Catacylsmic = true print("Enabled")
  201. CatacylsmicEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  202. end
  203. opencatacylsmic()
  204. end)
  205.  
  206. PsychadelicEgg.Name = "Psychadelic Egg"
  207. PsychadelicEgg.Parent = Eggs
  208. PsychadelicEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  209. PsychadelicEgg.Position = UDim2.new(0.28129378, 0, -0.801662743, 0)
  210. PsychadelicEgg.Size = UDim2.new(0, 233, 0, 34)
  211. PsychadelicEgg.AutoButtonColor = false
  212. PsychadelicEgg.Font = Enum.Font.Cartoon
  213. PsychadelicEgg.Text = "Psychadelic Egg (Rebirth 1)"
  214. PsychadelicEgg.TextColor3 = Color3.new(1, 1, 1)
  215. PsychadelicEgg.TextSize = 18
  216. PsychadelicEgg.TextStrokeTransparency = 0
  217. PsychadelicEgg.TextWrapped = true
  218. PsychadelicEgg.MouseButton1Click:connect(function()
  219. if Psychadelic == true then Psychadelic = false print("Disabled")
  220. PsychadelicEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  221. elseif
  222. Psychadelic == false then Psychadelic = true print("Enabled")
  223. PsychadelicEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  224. end
  225. openPsychadelic()
  226. end)
  227.  
  228. MemeEgg.Name = "Meme Egg"
  229. MemeEgg.Parent = Eggs
  230. MemeEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  231. MemeEgg.Position = UDim2.new(0.28129378, 0, -0.801662743, 0)
  232. MemeEgg.Size = UDim2.new(0, 233, 0, 34)
  233. MemeEgg.AutoButtonColor = false
  234. MemeEgg.Font = Enum.Font.Cartoon
  235. MemeEgg.Text = "Meme Egg"
  236. MemeEgg.TextColor3 = Color3.new(1, 1, 1)
  237. MemeEgg.TextSize = 18
  238. MemeEgg.TextStrokeTransparency = 0
  239. MemeEgg.TextWrapped = true
  240. MemeEgg.MouseButton1Click:connect(function()
  241. if meme == true then meme = false print("Disabled")
  242. MemeEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  243. elseif
  244. meme == false then meme = true print("Enabled")
  245. MemeEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  246. end
  247. openmeme()
  248. end)
  249.  
  250. SuperEgg.Name = "Super Egg"
  251. SuperEgg.Parent = Eggs
  252. SuperEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  253. SuperEgg.Position = UDim2.new(0.167008057, 0, 0.189287469, 0)
  254. SuperEgg.Size = UDim2.new(0, 233, 0, 34)
  255. SuperEgg.AutoButtonColor = false
  256. SuperEgg.Font = Enum.Font.Cartoon
  257. SuperEgg.Text = "Super Egg"
  258. SuperEgg.TextColor3 = Color3.new(1, 1, 1)
  259. SuperEgg.TextSize = 18
  260. SuperEgg.TextStrokeTransparency = 0
  261. SuperEgg.TextWrapped = true
  262. SuperEgg.MouseButton1Click:connect(function()
  263. if super == true then super = false print("Disabled")
  264. SuperEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  265. elseif
  266. super == false then super = true print("Enabled")
  267. SuperEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  268. end
  269. openmeme()
  270. end)
  271.  
  272.  
  273. LegendaryEgg.Name = "Legendary Egg"
  274. LegendaryEgg.Parent = Eggs
  275. LegendaryEgg.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  276. LegendaryEgg.Position = UDim2.new(0.164150909, 0, 0.0744726509, 0)
  277. LegendaryEgg.Size = UDim2.new(0, 233, 0, 34)
  278. LegendaryEgg.AutoButtonColor = false
  279. LegendaryEgg.Font = Enum.Font.Cartoon
  280. LegendaryEgg.Text = "Legendary Egg"
  281. LegendaryEgg.TextColor3 = Color3.new(1, 1, 1)
  282. LegendaryEgg.TextSize = 18
  283. LegendaryEgg.TextStrokeTransparency = 0
  284. LegendaryEgg.TextWrapped = true
  285. LegendaryEgg.MouseButton1Click:connect(function()
  286. if legendary == true then legendary = false print("Disabled")
  287. LegendaryEgg.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  288. elseif
  289. legendary == false then legendary = true print("Enabled")
  290. LegendaryEgg.BackgroundColor3 = Color3.new(0, .5, 0)
  291. end
  292. openlegendary()
  293. end)
  294.  
  295.  
  296. UIListLayout.Parent = Eggs
  297. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  298. UIListLayout.Padding = UDim.new(0, 8)
  299.  
  300. Utility.Name = "Utility"
  301. Utility.Parent = Frame
  302. Utility.BackgroundColor3 = Color3.new(1, 1, 1)
  303. Utility.BackgroundTransparency = 1
  304. Utility.Position = UDim2.new(0.487672716, 0, 0.15699327, 0)
  305. Utility.Size = UDim2.new(0, 258, 0, 229)
  306.  
  307. UIListLayout_2.Parent = Utility
  308. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  309. UIListLayout_2.Padding = UDim.new(0, 8)
  310.  
  311. Animations.Name = "Animations"
  312. Animations.Parent = Utility
  313. Animations.BackgroundColor3 = Color3.new(0.196078, 0.858824, 0.0980392)
  314. Animations.Position = UDim2.new(-1.48352218, 0, 0.113657296, 0)
  315. Animations.Size = UDim2.new(0, 233, 0, 34)
  316. Animations.AutoButtonColor = false
  317. Animations.Font = Enum.Font.Cartoon
  318. Animations.Text = "Animations / Notifications"
  319. Animations.TextColor3 = Color3.new(1, 1, 1)
  320. Animations.TextSize = 16
  321. Animations.TextStrokeTransparency = 0
  322. Animations.TextWrapped = true
  323. Animations.MouseButton1Click:connect(function()
  324. if animationson == true then
  325. animationson = false
  326. print("Disabled")
  327. Animations.BackgroundColor3 = Color3.new(0, .5, 0)
  328. screengui.EggHandler.Disabled = false
  329. screengui.Notifications.Handler.Disabled = false
  330. screengui.FullBackpack.Handler.Disabled = false
  331. screengui.HatHandler.Disabled = false
  332. elseif
  333. animationson == false then
  334. animationson = true
  335. print("Enabled")
  336. Animations.BackgroundColor3 = Color3.new(1, 0.1, 0.1)
  337. screengui.EggHandler.Disabled = true
  338. screengui.Notifications.Handler.Disabled = true
  339. screengui.FullBackpack.Handler.Disabled = true
  340. screengui.HatHandler.Disabled = true
  341. wait(1)
  342. end
  343. end)
  344.  
  345. BackpackShop.Name = "Backpack Shop"
  346. BackpackShop.Parent = Utility
  347. BackpackShop.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  348. BackpackShop.Position = UDim2.new(-1.57767284, 0, 0.220768958, 0)
  349. BackpackShop.Size = UDim2.new(0, 233, 0, 34)
  350. BackpackShop.AutoButtonColor = false
  351. BackpackShop.Font = Enum.Font.Cartoon
  352. BackpackShop.Text = "Backpack Shop"
  353. BackpackShop.TextColor3 = Color3.new(1, 1, 1)
  354. BackpackShop.TextSize = 18
  355. BackpackShop.TextStrokeTransparency = 0
  356. BackpackShop.TextWrapped = true
  357. BackpackShop.MouseButton1Click:connect(function()
  358.     game.Players.LocalPlayer.PlayerGui.BackpackShop.Open.Value = true
  359. end)
  360.  
  361.  
  362. ChestShop.Name = "Chest Shop"
  363. ChestShop.Parent = Utility
  364. ChestShop.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  365. ChestShop.Position = UDim2.new(0.28129378, 0, -0.801662743, 0)
  366. ChestShop.Size = UDim2.new(0, 233, 0, 34)
  367. ChestShop.AutoButtonColor = false
  368. ChestShop.Font = Enum.Font.Cartoon
  369. ChestShop.Text = "Chest Shop"
  370. ChestShop.TextColor3 = Color3.new(1, 1, 1)
  371. ChestShop.TextSize = 18
  372. ChestShop.TextStrokeTransparency = 0
  373. ChestShop.TextWrapped = true
  374. ChestShop.MouseButton1Click:connect(function()
  375.     game.Players.LocalPlayer.PlayerGui.ChestShop.All.Visible = true
  376. end)
  377.  
  378. MagnetShop.Name = "Magnet Shop"
  379. MagnetShop.Parent = Utility
  380. MagnetShop.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  381. MagnetShop.Position = UDim2.new(-0.846487403, 0, 0.126324505, 0)
  382. MagnetShop.Size = UDim2.new(0, 233, 0, 34)
  383. MagnetShop.AutoButtonColor = false
  384. MagnetShop.Font = Enum.Font.Cartoon
  385. MagnetShop.Text = "Magnet Shop"
  386. MagnetShop.TextColor3 = Color3.new(1, 1, 1)
  387. MagnetShop.TextSize = 18
  388. MagnetShop.TextStrokeTransparency = 0
  389. MagnetShop.TextWrapped = true
  390. MagnetShop.MouseButton1Click:connect(function()
  391.     game.Players.LocalPlayer.PlayerGui.Shop.Open.Value = true
  392. end)
  393.  
  394. RebirthShop.Name = "Rebirth Shop"
  395. RebirthShop.Parent = Utility
  396. RebirthShop.BackgroundColor3 = Color3.new(0.858824, 0.184314, 0.196078)
  397. RebirthShop.Position = UDim2.new(0.167008057, 0, 0.189287469, 0)
  398. RebirthShop.Size = UDim2.new(0, 233, 0, 34)
  399. RebirthShop.AutoButtonColor = false
  400. RebirthShop.Font = Enum.Font.Cartoon
  401. RebirthShop.Text = "Rebirth Shop"
  402. RebirthShop.TextColor3 = Color3.new(1, 1, 1)
  403. RebirthShop.TextSize = 18
  404. RebirthShop.TextStrokeTransparency = 0
  405. RebirthShop.TextWrapped = true
  406. RebirthShop.MouseButton1Click:connect(function()
  407.     game.Players.LocalPlayer.PlayerGui.RebirthShop.Open.Value = true
  408. end)
  409.  
  410. -- Scripts:
  411.  
  412. function opencommon()
  413. while common == true do
  414.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Common Egg")
  415.     wait(0.000000001)
  416. end
  417. end
  418.  
  419. function openuncommon()
  420. while uncommon == true do
  421.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Uncommon Egg")
  422.     wait(0.000000001)
  423. end
  424. end
  425.  
  426. function openrare()
  427. while rare == true do
  428.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Rare Egg")
  429.     wait(0.000000001)
  430. end
  431. end
  432.  
  433. function openlegendary()
  434. while legendary == true do
  435.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Legendary Egg")
  436.     wait(0.000000001)
  437. end
  438. end
  439.  
  440. function openepic()
  441. while epic == true do
  442.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Epic Egg")
  443.     wait(0.000000001)
  444. end
  445. end
  446.  
  447. function openmythical()
  448. while mythical == true do
  449.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Mythical Egg")
  450.     wait(0.000000001)
  451. end
  452. end
  453.  
  454. function openPsychadelic()
  455. while Psychadelic == true do
  456.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Psychadelic Rebirth Egg")
  457.     wait(0.000000001)
  458. end
  459. end
  460.  
  461. function opencatacylsmic()
  462. while Catacylsmic == true do
  463.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Rebirth Egg 2")
  464.     wait(0.000000001)
  465. end
  466. end
  467.  
  468. function opensuper()
  469. while super == true do
  470.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Super Egg")
  471.     wait(0.000000001)
  472. end
  473. end
  474.  
  475. function openmeme()
  476. while meme == true do
  477.     game:GetService("ReplicatedStorage").PetEvents.requesthatch:FireServer("Meme Egg")
  478.     wait(0.000000001)
  479. end
  480. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement