The player's head is supposed to disappear every time they spawn. I am getting an output. Here is my LocalScript inside StarterGui.
local player = game.Players.LocalPlayer repeat wait() until player.Character local character = player.Character local head = character:WaitForChild("Head") head.Transparency = 1 script:Destroy()
This is the output I am receiving:
18:12:11.087 - WaitForChild is not a valid member of Model
18:12:11.088 - Script 'Players.Player.PlayerGui.LocalScript', Line 4
18:12:11.088 - Stack End
All help is appreciated.
Thanks. :)
I copied your script into a Localscript in StarterGui, and It worked.
local player = game.Players.LocalPlayer repeat wait() until player.Character local character = player.Character local head = character:WaitForChild("Head") head.Transparency = 1 script:Destroy()
Tips -
You might want to remove the hats on the player if there are any You also might want to remove the face of the person since it still shows on an invisible head.
Try adding a wait before it destroys the script. Because once the script runs, it's destroyed. If you don't know where to put it, i'll show you:
local player = game.Players.LocalPlayer repeat wait() until player.Character local character = player.Character local head = character:WaitForChild("Head") head.Transparency = 1 wait(1) script:Destroy()