Hasli4

RBLX. PotionScript

Jan 14th, 2026
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local function leaderboardSetup(player)
  3.     wait(1)
  4.     game.Workspace.Data.Player.Value = player
  5.     local char = game.Workspace:WaitForChild(player.Name)
  6.     local coins = player.leaderstats.Coins
  7.     while true do
  8.         wait(1)
  9.         if coins.Value % 10 == 0 and coins.Value > 9 then
  10.             local potion = game.ServerStorage.Potion:Clone()
  11.             potion.Parent = player.Backpack
  12.             coins.Value = 0
  13.             script.Enabled = false
  14.             wait(3)
  15.             script.Enabled=true
  16.         end
  17.     end
  18. end
  19. Players.PlayerAdded:Connect(leaderboardSetup)
Advertisement
Add Comment
Please, Sign In to add comment