Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Rotating a part?

Hi,

I have this script. It's in a model, which is in a model, which is in another model. For some reason, it only rotates a little bit. I tried it on the same model but not with the others, and it worked fine. Any help?

script.Parent.PrimaryPart = script.Parent.MainHose.LM

while true do
	script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame * CFrame.new(0, 0, -0.1) * CFrame.Angles(0.1,0,0))
	wait()
end

Thanks.

1 comment

0

its may be interfering with something else

1 answer

✓ Accepted answer

Try using eulerangles like this

while true do
	script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.1,0.1,0.1)
	wait(0.02)
end

Hope this helped

3 comments

0

Same problem. Would it help to have a picture? http://prntscr.com/80nxzl

0

fromEulerAnglesXYZ is the same as Angles, you just need to do math.rad(.1) instead of .1

0

Ahh...

This discussion is preserved as it was. New answers, comments, and votes are closed.