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

How could you make a model and clone it to the player and make the player the model?

Asked by 8 years ago

For example, I put the model I made in Replicated Storage and I clone it and parent it to the player. This is what I thought of but the player does not become the model. I even tried to clone hair to a player without hair and it just puts the hair in the player but it is not on the player. Here is the script.

Player = game.Players.LocalPlayer
function MB1D()
local Morph = game.ReplicatedStorage.Natsu:clone()
Morph.Parent = Player.Character
end
script.Parent.MouseButton1Down:connect(MB1D)

Keep in mind I want to make the player the model I made.

0
Is the model the same as a normal ROBLOX character but with your own hats / clothing / etc? NoahWillCode 370 — 8y
0
Yes Relampago1204 73 — 8y

1 answer

Log in to vote
1
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
8 years ago

You're putting the model inside of the current character instead of changing the character into the model.

It should look like this:

local Player=game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function()
    local Morph=game.ReplicatedStorage.Natsu:Clone()
    Morph.PrimaryPart=Morph:FindFirstChild("Torso")
    Morph:SetPrimaryPartCFrame(Player.Character.Torso.CFrame)
    Player.Character=Morph
    workspace.CurrentCamera.CameraSubject=Morph
    Morph.Parent=workspace
end)
Ad

Answer this question