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

Another block movement script problem?

All I have is basic block movement, but i need rotation?

1 comment

0

local model = script.Parent local platform = model.Platform local start = model.Start local finish = model.Finish local bodyPosition = platform.BodyPosition while true do bodyPosition.position = start.Position wait(6) bodyPosition.position = finish.Position wait(6) end

1 answer

First I don't know what you mean by rotation, I assume you mean rotating a block with a script. I will give you examples:

~~~~~~~~~~~~~~~~~ local object = game.Workspace.spinner local y = object.Rotation.Y -- These are finding the current angles of rotation local x = object.Rotation.X local z = object.Rotation.Z

function turn() object.Rotation = Vector3.new(y,x+3,z) --This is turning, or rotating like a compass or a clock end wait(5) turn() -- This is an example of still rotation or rotating to certain angles


<Example two>

local object = game.Workspace.spinner

function turn() object.BodyAngularVelocity.AngularVelocity = Vector3.new(0,50,0) end wait(5) turn() -- In order to do this a basic part(BodyAngularVelocity) will have to be inserted into said part

-- This will turn like a active merry-go-round, it will not stop until told and has no given angle to stop


Now if you are talking about C-framing I can't help you.

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