I cloned a humanoid model on WorldModel and I’m using it to play animation. The problem is, the world model is cloned for a player which joins, so obviously the name of the child is different every time. The code block down below works only for me, so I was wondering how to get a child, regardless of its name?
The game limit is 1 player, so there is no need to worry about multiple players.
local character = player.PlayerGui.ScreenGui.ViewportFrame.WorldModel:WaitForChild("OfficialDipsy")
Is the child the players name you assign it, since you have it as your username when waiting for child you could just do player.Name if that’s the issue.
local character = player.PlayerGui.ScreenGui.ViewportFrame.WorldModel:WaitForChild(player.Name)