How can you create a floating block? like it just slowly goes down and comes back up.
As if something was floating in mid air, nothing is making it happen.
I'm not talking about anchoring either.
You would want to use a BodyMover
. I would recommend BodyVelocity, because it allows you to apply force to an object/instance, until it reaches a certain velocity. Given that your objective is to have it floating, this instance would be optimal.
The following is an example of how you'd implement it to an object. I will instantiate a Part
in the process just for demonstrative purposes.
local part = Instance.new("Part") part.Parent = workspace local move = Instance.new("BodyVelocity") move.maxForce = Vector3.new(0,3e3,0) -- amount of force applied on -- each axis. move.Parent = part move.P = 1000