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

Morphs that replace Morphs?

Asked by 5 years ago

So, I'm working on a Roblox Roleplay game where I want the player to start with a blank Morph of the character model, but be able to change to another morph by walking on a character button at any time they wish. Can somebody please help me and explain me how to make this possible?

0
R6 or R15? User#19524 175 — 5y
0
Boy, that was quick. R6, thanks. SZANIHUNTER 0 — 5y
0
That would be pretty easy then. You could use a CharacterMesh. User#19524 175 — 5y
0
And how exactly do I use the CharacterMesh? Kinda want to walk on a button, become something (pretty easy to get working), but then still as that something, walk on some other button and REPLACE that form by the new one. Will CharacterMesh help me with this? SZANIHUNTER 0 — 5y

2 answers

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

I would recommend just having the script delete the previous morph, and then insert the new one. To trigger it I would use a Touched event.

script.Parent.Touched:Connect(function(hit) --script.Parent = Button if you put a script in it
--Insert code here
end
0
Huh. Thanks. So that's how it works. Will it be able to be done infinite times tho? Like, I can just jump from morph to morph with no problemo? SZANIHUNTER 0 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Revert the player model to the blank morph and then to the new morph. Assuming you already got it to change morphs. If you're code is able to replace the entire character, just overwrite the old morph with the new morph.

0
Aaand how do I do that again? I'm... really not good at scripting. It already surprises me I managed to make a morph at all. SZANIHUNTER 0 — 5y
0
You could also respawn the character and teleport them back with the new morph. chexburger 358 — 5y

Answer this question