Hello, I'm facing a problem that i can't revolve by myself unfortunaly.
local player = game.Players.LocalPlayer
repeat wait() until not player.Stats:WaitForChild("R_KeyMoveset").Value == nil
while wait() do
if player.Stats:WaitForChild("R_KeyMoveset").Value == nil then
wait()
else
print(game.ReplicatedStorage.Movesets:FindFirstChild(player.Stats:WaitForChild("R_KeyMoveset").Value).Name.Value)
local move = game.ReplicatedStorage.Movesets:FindFirstChild(player.Stats:WaitForChild("R_KeyMoveset").Value).Name.Value
script.Parent.Text = script.Parent.Parent.Key.Value.." - "..move
end
end
So first if i remove the line with the repeat the script will go to the second option (value isn't nil or "") and if i let it the script is still waiting. I need help to wait until the value isn't nil. Thanks for answers

1 comment
I believe you could do
repeat wait() until player.Stats:WaitForChild("R_KeyMoveset").Value