I have a floating script for a skate model I did, but only one part is floating (the parent part, the board itself). Ive tried welding, using motor6D, anchoring ONLY the board and not the other parts of the skate/model... But nothing is working. Can anyone help me with this? This is the script I have so far:

local TweenService = game:GetService ("TweenService")
 
local board = workspace.skate2["board2"]

local tweeninfo = TweenInfo.new(
	0.9,
 	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	-1,
	true,

)
	 
local NewPosition = board.Position + Vector3.new(0,3,0)

local tween = TweenService:Create (board, tweeninfo, {Position = NewPosition})

tween:Play()

skate2 = the model name board2 = the part/union name (Unioning is not an option bc i have parts with different materials and textures)

Thank you in advance

2 comments

0

If I use this script in every part and union it will work, but its a lot of parts and I would like to optimize this using only one script

0

i think you should group them together and use a pair loop to make the code work for all parts in the model.