Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

CLOSED: How do I let a part tween pass through a part smoothly?

Asked by
Griffi0n 315 Moderation Voter
7 years ago
Edited 7 years ago

CLOSED:

local player = game.Players.LocalPlayer
local TweenService = game:GetService("TweenService")

local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)

TweenService:Create(game.Workspace.TestPart, info, {CFrame = CFrame.new(9.25, 5, 75.85)}):Play()

If I set the goal to a CFrame then it will work. I've also learned a lot about CFrames in this time.

1 answer

Log in to vote
0
Answered by
Griffi0n 315 Moderation Voter
7 years ago

CLOSED:

local player = game.Players.LocalPlayer
local TweenService = game:GetService("TweenService")

local info = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)

TweenService:Create(game.Workspace.TestPart, info, {CFrame = CFrame.new(9.25, 5, 75.85)}):Play()

If I set the goal to a CFrame then it will work. And I've learned a lot about CFrames in this time.

Ad

Answer this question