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

Why do the parts in this script not turn?

Asked by
Mowblow 117
10 years ago
for _, part in pairs(parts) do
        if part:IsA("Part") then
        print("we got dat vecta")
        part.CFrame = CFrame.new(Part.CFrame.p, mousep)
        wait(.001)
    end
end

No errors in output, all variables defined. Any suggestions?

1 answer

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

You really should include the variables, because I have no idea what mousep is. But if you want to make the brick "turn", you should use CFrame.Angles().

Also is "Part" defined somewhere? Because if you really mean "part", it could cause a problem.

Ad

Answer this question