#this script aint working and idk why

33 messages · Page 1 of 1 (latest)

earnest veldt
vocal lava
#

you have typed "Payer" rather than "Player"

#

2nd line

earnest veldt
#

oh 2 sec then

earnest veldt
severe rainBOT
#

studio** You are now Level 1! **studio

earnest veldt
#

it doesnt count further

slender jackal
earnest veldt
#

if i put it on 2 it only repeats 2 times

#

i need it to keep counting for ever

slender jackal
#

no

#

u want to connect a getpropertychangedsignal for value

earnest veldt
#

i think ye

slender jackal
#

so connect it

earnest veldt
#

how

#

i watched a tut on it and he has the same and does keep counting me doesnt

slender jackal
# earnest veldt how

so avoid doing repeat until because u have WaitForChild, principal purposes on client side

#

local leaderstats = Player:WaitForChild("leaderstats")

earnest veldt
#

so i need to get rid of repeat line

slender jackal
#

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

earnest veldt
#

it does the same but stops at 1

slender jackal
#

wut?

#

yeah i was just telling u

#

that is not the final thing

#

please, copy and paste the script here

earnest veldt
#

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

severe rainBOT
#

studio** You are now Level 2! **studio