#this script aint working and idk why
33 messages · Page 1 of 1 (latest)
new problem it stops counting after 2
** You are now Level 1! **
it doesnt count further
u only set it one time
i think ye
so connect it
so avoid doing repeat until because u have WaitForChild, principal purposes on client side
local leaderstats = Player:WaitForChild("leaderstats")
so i need to get rid of repeat line
yes
because that lines do the same, waits until the child leaderstats appears
and also throw a warn and stop the script there if its taking more time than the intended
it does the same but stops at 1
wut?
yeah i was just telling u
that is not the final thing
please, copy and paste the script here
Oke
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local CurrencyGUI = script.Parent
local CurrencyHolder = CurrencyGUI:FindFirstChild("CurrencyHolder")
local Food = CurrencyHolder:FindFirstChild("Food")
local Coins = CurrencyHolder:FindFirstChild("Coins")
local leaderstats = Player:WaitForChild("leaderstats")
Food.Amount.Text = Player.leaderstats.Food.value
Coins.Amount.Text = Player.leaderstats.Coins.value
i got rid of reset and put the local leaderstate there
** You are now Level 2! **