I wanted to make a script so if my avatar loaded, my HeadScale would be changed to 4. However, studio responded with an error. Here is the script:
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) if player.Name == "YT_Epiix" then local user = game.Workspace:WaitForChild("YT_Epiix") user.Humanoid.HeadScale.Value = 4 end) end)
If you could teach me how to fix this error, I would appreciate it. Thanks!
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) if player.Name == "YT_Epiix" then -- if statements need an end to close them local user = game.Workspace:WaitForChild("YT_Epiix") user.Humanoid.HeadScale.Value = 4 end-- heres the end you need to add end) end)