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

How can it seem like flying?

Asked by 10 years ago

So, I want to make a Part that will be able to "fly". What I mean is that it will slowly move to a position and then to another and another later when it comes back the loop will start again. Give me clues of what to use.

2 answers

Log in to vote
0
Answered by 10 years ago

Start of by moving and experimenting where the block could go eg:

-- script.Parent = Part (The thing you want moving)

Part = script.Parent

for i = 1,100 do
Part.CFrame = Part.CFrame +Vector3.new(0, 0, 0)
wait(0.05)
end

--Experiment by putting numbers where "0, 0, 0" is

If you want to rotate it do this:

Part = script.Parent

for i = 1,100 do
Part.CFrame = Part.CFrame *CFrame.Angles(0, 0, 0)
wait(0.05)
end
0
So the only way is doing it with CFrame. I thought if I could just set the position I want it to go and it wil move the smoothly FanisTheCool 55 — 10y
Ad
Log in to vote
0
Answered by
duckwit 1404 Moderation Voter
10 years ago

Use different BodyMover Instances to achieve smooth motion, for example BodyPosition, BodyVelocity, BodyGyro, and BodyThrust.

You can read about them in more detail on the Official Roblox Wiki:

http://wiki.roblox.com/index.php?title=BodyMover_Objects

Answer this question