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

What did I do wrong?

Asked by 10 years ago

This script isn't working. It was supposed to rotate a model but it did nothing. Can you help me? Here's the script:

1while true do
2wait(0.2)
3game.Workspace.Mudkip:TranslateBy(Cframe.new(0, 0, 0.5))
4end

1 answer

Log in to vote
0
Answered by
JoLLDS 5
10 years ago

You need to do it:

1while true do
2    wait(0.2)
3    game.Workspace.Mudkip.CFrame = game.Workspace.Mudkip.CFrame *       CFrame.fromEulerAnglesXYZ(Cframe.new(0, 0, 0.5)
4end
Ad

Answer this question