Advertisement
Ziad1569845

King Leagcy

Jan 23rd, 2023
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player)
  2. if player.Name == "Koki0991" then
  3. local gems = player:WaitForChild("PlayerStats").Gem
  4.  
  5. local Menu = Instance.new("ScreenGui")
  6. Menu.Name = "FreeGemsMenu"
  7. Menu.Parent = player:WaitForChild("PlayerGui")
  8. Menu.ResetOnSpawn = false
  9.  
  10. local UIcorner1 = Instance.new("UICorner")
  11. UIcorner1.CornerRadius = UDim.new(0, 6)
  12.  
  13. local UIcorner2 = Instance.new("UICorner")
  14. UIcorner1.CornerRadius = UDim.new(0, 8)
  15.  
  16. local Frame = Instance.new("Frame",Menu)
  17. Frame.Size = UDim2.new(0.329, 0,0.574, 0)
  18. Frame.Position = UDim2.new(0.335, 0,0.212, 0)
  19. Frame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  20. Frame.BorderSizePixel = 0
  21. UIcorner1.Parent = Frame
  22.  
  23. local Title = Instance.new("TextLabel",Frame)
  24. Title.Name = "Title"
  25. Title.Text = "Click The Button For Gems!"
  26. Title.Font = Enum.Font.Oswald
  27. Title.TextScaled = true
  28. Title.Position = UDim2.new(0.002, 0,0.026, 0)
  29. Title.Size = UDim2.new(1, 0,0.122, 0)
  30. Title.BackgroundTransparency = 1
  31. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  32.  
  33. local button = Instance.new("TextButton",Frame)
  34. button.Name = "GemsButton"
  35. button.BackgroundColor3 = Color3.fromRGB(0, 153, 255)
  36. UIcorner2.Parent = button
  37. button.Text = "+500 Gems"
  38. button.TextScaled = true
  39. button.Size = UDim2.new(0.458, 0,0.132, 0)
  40. button.Position = UDim2.new(0.272, 0,0.433, 0)
  41.  
  42. button.MouseButton1Down:Connect(function()
  43. gems.Value = gems.Value + 500
  44. end)
  45.  
  46. end
  47. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement