Is posible to get the players head using a script? [SOLVED]

Its parented into the player head because when player join he will get the OverHeadGUI and I just only need a delay or way like 0.5 seconds
BTW which is better wait() or delay()?

Why don’t you just use WaitForChild?

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local Head = Character:WaitForChild("Head")
        
        Head:WaitForChild('OverHeadGui').Frame.IconHolder.Computer.Visible = true
    end)
end)
1 Like

Yeah but I want to delay it for 0.5 seconds because I want to parent the OverHeadGUI to player head first

:WaitForChild() will yield the current thread until the Instance given exists, in your case, the Overhead Frame. There is no need to use anything else?

Ohh okay because I currently learning some lua stuffs thanks

2 Likes