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

Can you help me get this welding problem done?

Asked by
crut24 50
8 years ago

Useing a While true do loop how do i make it so in a weld the rotation of the X and Z axis are always 0? I wrote this script but it doesnt work, the parts are just fliping arround:

for i,v in pairs(script.Parent.Parent.HovP:GetChildren()) do
    if v:IsA("BasePart") then
        v:WaitForChild("Weld")
        v.Weld.C0 = script.Parent.CFrame:inverse()
        v.Weld.C1 = (v.CFrame *CFrame.Angles((v.Rotation.X)*(-1),0,(v.Rotation.Z)*(-1)))
    end
end
0
Wah? TheHospitalDev 1134 — 8y

Answer this question