it works fine until i died after that the printings has stopped and no errors shows
hey, to make the localscript work after Chrackter Died you must remove the game.Players.PlayerAdded:Wait()
on the first line of the script because it will keep waiting until a player has joined the game
i removed it but nothink changed
what did you remove exactly, give me the first edited line
local player = game.Players.LocalPlayer
thats my first line
does the output print anything such as âinfinite yield possible on waitforchildâ
yes your right there is
Infinite yield possible on âPlayers.TapsoNNN:WaitForChild(âLvâ)â
you know how to fix it?
if its searching for âLvâ that means its a server issue
so how do i fix this do you have any ideas?
WaitForChild means itâs waiting/yielding for something to be added into that parent with the name given.
You can fix that by adding Lv into player, and if youâre positive that thing is being added itâs possible there was a spell error.
i mean lv is arleady in leaderstats in the player but how is it possible that at the first time it can be found and if player dies there is no lv anymore?
you said it, because itâs in leaderstats
itâs searching in the player
i changed it and now if i dies it works but at joining the game it dont show the values
same problem but diffrent ways i am confussed
The problem was that the values did not updated after player died, so i change this line
local level = player:WaitForChild(âLvâ)
to this
local level = player.leaderstats:WaitForChild(âLvâ)
and now the values do not get updated befor the player dies
Can anybody explain this?
i solved this problem by adding
wait(1) befor
local level = player.leaderstats:WaitForChild(âLvâ)