How should I make a can collide and unanchored part levitate

  1. What do you want to achieve? Keep it simple and clear!
    a can collide and unanchored part levitate

  2. What is the issue? Include screenshots / videos if possible!
    I made a part spawner which shoots can collide and unanchored part but the problem is the part slip through the ground because it collide and unanchored, So how should I make it levitate a bit above the ground

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Searching but still can’t find.

Add a BodyForce onto your parts. The code would look like this

local BodyForce ="BodyForce")
BodyForce.Parent = YourPartGoesHere
BodyForce.Force = Vector3.New(0,script.Parent:GetMass() * workspace.Gravity,0)

What is the script you are using?
If the CanCollide Parts are CFramed then they’ll just be ‘teleported’ to the next location in their path, rather than move there, so they’ll pass through other Parts.

The easiest way would be to make attach a solid part to it that is invisible and slightly bigger. That way the whole thing will rest on the bottom of the invisible part, making the visible parts look like they’re hovering.

Of course that means it can’t all have collisions disabled. Have you looked into using Collisions Groups?

BodyForce/BodyPosition instances can be used to achieve this.

Just use BodyMovers as everyone is previously stating.

BodyPosition to keep it up in position.
BodyGyro to align its orientation.

just set the CanCollide to true