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
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
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.