Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- DISCORD: https://discord.gg/u3V8d45P9Q
- -- Pobranie lokalnego gracza (czyli Ciebie w grze)
- local player = game.Players.LocalPlayer
- -- Czekanie na załadowanie się folderu "otherValues" i wartości "Spins"
- -- Używamy WaitForChild, aby uniknąć błędów, jeśli skrypt uruchomi się zbyt wcześnie
- local spinsValue = player:WaitForChild("otherValues"):WaitForChild("Spins")
- -- Sprawdzenie, czy na pewno znaleziono obiekt i jest to NumberValue
- if spinsValue and spinsValue:IsA("NumberValue") then
- -- Ustawienie wartości na nieskończoność. W Lua jest to reprezentowane przez "math.huge"
- spinsValue.Value = math.huge
- print("Ustawiono spiny na nieskończoność!")
- else
- warn("Nie znaleziono obiektu 'Spins' dla gracza: " .. player.Name)
- end
Advertisement
Add Comment
Please, Sign In to add comment