Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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.

0
That did not work. I do not know what was wrong. Shadow_12306 7 — 3y
0
where was the bear located? did you rename the model if it wasnt called bear? AbsurdAwesome101 56 — 3y
0
where was the bear located? did you rename the model if it wasnt called bear? AbsurdAwesome101 56 — 3y
Ad

Answer this question