Hi. I want my ImageButton to make you my StarterCharacter, which is a BlockRig. In my menu, I have the ImageButton that when you press, I want it to spawn you as the StarterCharacter. I have some more StarterCharacters That are named differently, but I will script them to rename when I want you to spawn as one. For now, I have you spawn as your character in a black box. There is the menu that I made on screen. I tried making a script. Here is what it is.
local ServerStorage = game:GetService("ServerStorage")
local StarterPlayer = game:GetService("StarterPlayer")
local ImageButton = script.Parent
ImageButton.MouseButton1Click:Connect(function()
ServerStorage.StarterCharacter.Parent = StarterPlayer
end)
I don't know what's wrong. Can anyone help?
