Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Welding a part to a right arm(when zooming in)?

Say I make a local script for a part to automatically weld itself insides a player's character directly to his arm(plr.Character:findFirstChild("Right Arm")),is there some wiki page or some source that could relate to the issue?

Example =

[Local Script]
plr = game.Players.LocalPlayer
x = Workspace.Part:Clone()
weld = Instance.new("Weld", plr.Character)

weld.Part0 = x
weld.Part1 = plr.Character:findFirstChild("Right Arm")
weld.C0 =CFrame.fromEulerAnglesXYZ(0,0,0)*CFrame.new(0,1,1)
weld.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)*CFrame.new(0,0,0)

--When I zoom in the part goes invisible

What do?

1 answer

✓ Accepted answer

I've noticed this before as well when parenting parts inside a character. When you zoom in, they become invisible. Just put the part in workspace.

Of course, if you put it in workspace you will need a Died event to remove it when a player dies.

2 comments

1

What about using the CharacterRemoving event so that the arms don't randomly disappear as soon as you die?

0

I've never heard of that event before you posted that but yeah, that would work.

This discussion is preserved as it was. New answers, comments, and votes are closed.