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

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

Asked by
Cr0ws 20
10 years ago

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

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

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.

1
What about using the CharacterRemoving event so that the arms don't randomly disappear as soon as you die? Spongocardo 1991 — 10y
0
I've never heard of that event before you posted that but yeah, that would work. Perci1 4988 — 10y
Ad

Answer this question