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

How would one script a morph gui for models? [closed]

Asked by 8 years ago

I'm making a script for a game, But I'm very new to scripting. I understand how to script using meshes, Like robloxian 2.0, but how about models? I have the custom models, and the gui built. I just need to be able to script it to where the GUI button morphs you into that model. If someone could get back to me about this, That'd be great.

Closed as Not Constructive by ChemicalHex, Uroxus, minikitkat, and Shawnyg

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 8 years ago

This isn't a request site, however the easiest way to make a morph with models is to weld a part to the player/limb you want the model attached to. To do this, you need to have a part in the model that represents the limb of the player you want the model to be attached to. After that you weld all the parts inside the model to that one part. Then in the script you'll create a new weld that welds the part inside the model to the limb of the player along with cloning the model to the players character. Here's a few examples: Model's Welded part Model welded and parented to player

local model = game.ServerStorage.Model:clone() -- Change this to whatever your models name is and where it's located.
model.Parent = player.Character
local weld = Instance.new("Weld")
weld.Parent = model.WeldPart -- Change WeldPart to w/e you named the part that the model is welded too.
weld.Part1 = model.WeldPart
weld.Part0 = player.Character.Torso -- Change Torso to w/e limb you wish to weld too.
weld.CFrame.new(0, 0, 0)

That's pretty much it. I'm sure there are other ways to make morphs, but this is the way I do it(Simplified) and it gets the job done, hope it helped.

Ad