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

Why is my morph script not inserting the charactermeshes?

Asked by 6 years ago
Edited 6 years ago

Hi, i want to make a script that morphs someone when they clicked a button. The script is in a local script under starter gui.

01local player = game.Players.LocalPlayer
02local chara = player.Character
03while not chara do
04    wait()
05    chara = player.Character
06end
07 
08local function OnClicked ()
09    local cash = player.Money.Value
10    if cash >= script.Parent.Parent.Price.Value then
11        cash = cash - script.Parent.Parent.Price.Value
12 
13 
14    local Morph = script.Parent.Parent.morph
15        local BodyParts = chara:GetChildren()
View all 58 lines...

The script deletes all clothes on the character and spawns the head mesh, but somehow it doesnt put the charactermeshes in the character. There is no error output either. Hope someone can help me

Answer this question