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

Weld refuses to rotate?

Asked by
drew1017 330 Moderation Voter
8 years ago
script.Parent.Bottom.Touched:connect(function(hit)
    if hit and hit.Parent and hit.Parent:FindFirstChild'Humanoid' and not hit.Parent:FindFirstChild'Enemy' and not hit.Parent:FindFirstChild'Container' and not touched then
        touched = true
        local spawnedGun = game.ReplicatedStorage.Guns.Wildfire:Clone()
        spawnedGun.Parent = workspace
        spawnedGun:MoveTo(script.Parent.SpawnPoint.Position)
        --script.Parent.Top:Destroy()
        script.Parent.Bottom.Spring.C0 = script.Parent.Bottom.Spring.C0 * CFrame.Angles(0, 0, math.rad(-80))
        Anchor(spawnedGun)
        wait(.1)
        Anchor(spawnedGun)
    end
end)

Everything works, but the Spring(a weld) won't rotate the Part1 even with the CFrame.Angles on C0. Any idea why it won't work?

Answer this question