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

Welding a part to a player's torso makes the player die on spawn. Any help?

Asked by 9 years ago

******SOLVED!!!

Hi. I've been trying to un-bevel the ROBLOX player (sort of like in the old days, circa 2008). I've got the arms and legs done, but whenever I weld a new part to the torso, the player dies on spawn. Here's my code:

01local function trueWeld(a,b)
02    local weld = Instance.new("ManualWeld", a)
03    weld.Part0 = a
04    weld.Part1 = b
05    weld.C0 = CFrame.new()
06    return weld
07end
08 
09local function dressCharacter(character)
10    character:WaitForChild("Torso").Transparency = 1
11    local fakeTorso = game.Workspace.Player:WaitForChild("Torso"):Clone()
12    fakeTorso.Parent = character
13    trueWeld(character:WaitForChild("Torso"),fakeTorso)
14 
15end
View all 22 lines...

Anyone knows what I'm doing wrong?

1
What happens if the fakeTorso isn't called Torso? E.g., name it "FakeTorso" in `workspace.Player` BlueTaslem 18071 — 9y
1
I love you BlueTaslem. Thanks for your help over at Reddit! Solved. broetchen 0 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

In order for it to work, you have to rename the Torso clone. Here is the fix.

01local function trueWeld(a,b)
02    local weld = Instance.new("ManualWeld", a)
03    weld.Part0 = a
04    weld.Part1 = b
05    weld.C0 = CFrame.new()
06    return weld
07end
08 
09local function dressCharacter(character)
10    character:WaitForChild("Torso").Transparency = 1
11    local fakeTorso = game.Workspace.Player:WaitForChild("Torso"):Clone()
12    faketorso.name = ("FakeTorso")
13    fakeTorso.Parent = character
14    trueWeld(character:WaitForChild("Torso"),fakeTorso)
15 
View all 23 lines...
Ad

Answer this question