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

Spinning Brick Script?

Asked by 10 years ago

I was wondering how would I make my Brick spin on the X Axis? You know, Rotate like the Earth does. I need it for a game but I can't find any Resources to help me. I do not want to use a Motor cause the Brick is Hovering in mid air.

1 answer

Log in to vote
0
Answered by 10 years ago
-- In a local script.
service = game:GetService("RunService")
service.Heartbeat:connect(function()
    part = Workspace.model.base -- Just an example replace it with the link to your part.
    part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(1), 0)
end)
Ad

Answer this question