Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can anyone make a script that turns the player's character into a custom model on a button click?

Hello.

I need help making a script that turns the player's character into a custom model on a button click. I am super new at scripting so I don't know how to do this myself. The model is going to be an animal, one of those animals being a bear. So what needs to happen is when the player clicks the button that says bear, (I've already made that button) their character turns into the bear. (I've also already made the bear.) I have multiple models that I need the player to turn into. So if you can help, please do.

Thanks!

1 answer

✓ Accepted answer

Remember, it is not proper on scriptinghelpers to ask for scripts. Many cocky, toxic people who like to push this say "its scripting helpers not scripting givers!111 do you expect us to just GIVE you scripts lol!11!" But just don't post a question like this again. I wouldn't have answered this if I didn't already have a script.

script.Parent.ClickDetector.MouseClick:Connect(function(plr)
	local character = game.ServerStorage.Bear:Clone() -- Bear does not need to be in serverstorage. Put it where you need it, and rename as such.
	character.Name = plr.Name
	plr.Character = character
	character.Parent = workspace
end)

If you're talking about a Gui button:

script.Parent.MouseButton1Click:Connect(function(player)
	local character = game.ServerStorage.Bear:Clone() -- Bear does not need to be in serverstorage. Put it where you need it, and rename as such.
	character.Name = player.Name
	player.Character = character
	character.Parent = workspace
end)

These must be in server scripts, or the blue scroll without the little man popping out. The character will respawn but they will get the outfit. PLEASE check out youtubers like AlvinBlox they will help you SO MUCH with beginning AND advanced scripting. Please do not ask for scripts on this site.

3 comments

0

That did not work. I do not know what was wrong.

0

where was the bear located? did you rename the model if it wasnt called bear?

0

where was the bear located? did you rename the model if it wasnt called bear?

This discussion is preserved as it was. New answers, comments, and votes are closed.