I’m trying to create a script that will weld a part that is dropped onto
However, when I move
Plate, the dropped part only mimics the orientation and physics of
Plate but stays where it is.
if hit.Name == "Plate" then
script.Parent.Position = Vector3.new(hit.Position.X, hit.Position.Y+0.25, hit.Position.Z)
script.Parent.Parent = hit.Parent
local weld = Instance.new("WeldConstraint", hit.Parent)
weld.Part0 = hit
weld.Part1 = script.Parent
Any help will be appreciated, thank you!
Can someone help me please? charss
I believe you may have to convert Position to CFrame. If it’s welded that should work.
Give this a go
The line constructing the CFrame is pretty long so I’d recommend splitting it up
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.