Hello all, I've been trying to create a type or morph button via GUI that connects to the "StarterPlayer". I've debating on how to actually go about creating this morph button, and figured that by adding a Character Model to the StarterPlayer, and having a GUI that changes the name of said character to "Startercharacter" for said local player, that it'd create a type or morph without to advanced of coding.
Here is what I have so far, It says that StarterPlayer isn't a vlid member of Player, so I don't understand why that is, or what. Any and all help is appreciated!
Keep in mind, this is in a LOCALSCRIPT
local player = script.Parent.Parent.Parent
local boy = script.Parent.Parent.Parent.Parent.StarterPlayer.StarterBoy
script.Parent.MouseButton1Click:Connect(function(click)
if click then
boy.Name = "StarterCharacter"
end
end)

3 comments
Attempted this, it didn't work!
Did u replace "BoyModelName" with "StarterBoy" (because I just gave my example), this is correct way to get StarterPlayer. I just tested it and it works.
Bryan I focused more on your code that question you asked, now I saw that you changed name from local script. You must use remotevents to change name of that model in order for player to get that character. https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events