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

Baby fake torso not welding to real torso?

Asked by 7 years ago

Hi.

I'm trying to copy off an old baby morph script (don't judge me). I did it, but for some reason, the fake torso is not welding to the real torso (I think).

Can someone please tell me what I missed?

My script:

01storage = game:GetService("ReplicatedStorage")
02 
03storage.Events.PlayerToBaby.OnServerEvent:connect(function(player)
04    print("Request received.")
05    local char = player.Character -- Get character
06    -- Head mesh size
07    local mesh = char.Head:FindFirstChild("Mesh")
08    if mesh then
09        mesh.Scale = Vector3.new(1, 1, 1)
10    end
11    -- Torso management
12    local torso = char.Torso
13    torso.Transparency = 1
14    torso.CanCollide = false
15    -- Existing FakeTorso destruction
View all 53 lines...

Old baby script:

01debounce=false
02 
03function onTouched(hit)
04    if hit.Parent ~= nil then
05        if (hit.Parent:findFirstChild("Humanoid") == nil) then return end
06        if (hit.Parent:findFirstChild("IsaMorph") ~= nil) then return end
07        local human = hit.Parent:findFirstChild("Humanoid")
08        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
09        local char = human.Parent
10        if (human ~= nil) and debounce == false then
11            debounce = true
12            if char:findFirstChild("Infant") == nil then
13                local mesh = char.Head:findFirstChild("Mesh")
14                mesh.Scale = Vector3.new(1, 1, 1)
15                local torso = char.Torso
View all 69 lines...
0
Never mind, I figured it out. Fireorius 51 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

R15 does not have a torso, use UpperTorso

0
I'm not using R15, I'm using R6. Fireorius 51 — 7y
Ad

Answer this question