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:

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

1 answer

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

You need to do it:

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

Answer this question