Help with TweenServies

How do I change this into a tween

ball.CFrame = CFrame.new(opart.Position)

This make the ball teleport to the part, but I want it to go there smoothly

How do I do this

1 Like

Use TweenService. Make sure you’re doing this on the client for the smoothest effect.

--//Services
local TweenService = game:GetService("TweenService")

--//Functions
local cframeTween = TweenService:Create(Ball, TweenInfo.new(1, Enum.EasingStyle.Quint), {
	CFrame = CFrame.new(opart.Position)
})

cframeTween:Play()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.