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

How to make a part inside a player's arm weld to it??

Asked by
zle_n 9
5 years ago
Edited 5 years ago

I've made a script that creates a part using Instance.new and I want to know how I could make that part like stick to the player's arm, when the player moves the part will remain stuck to the players arm. I was thinking welding but I am not sure..

local forearm = Instance.new("Part",game.Workspace.zle_n["Right Arm"])
forearm.CFrame = game.Workspace.zle_n["Right Arm"].CFrame + Vector3.new(0, -0.3, 0)
forearm.Anchored = true

Code is just in case someone could show me how I could maybe make it work

0
I do recommend welding, though I can't weld when it comes to scripts, so if anyone's got a solution to that, I'll most likely be stalking this question zadobyte 692 — 5y
0
Have you tried using a WeldConstraint? DeceptiveCaster 3761 — 5y
0
I have not but I thought maybe there could be another way, because I never used WeldConstraints but I'll look into it. zle_n 9 — 5y

1 answer

Log in to vote
0
Answered by
zle_n 9
5 years ago
Edited 5 years ago

WeldConstraints work perfectly!

https://developer.roblox.com/en-us/api-reference/class/WeldConstraint

Ad

Answer this question