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

How do I make multiple objects move at a time?

Asked by 5 years ago

I'm trying to make a chariot with a specified location, but only one part moves and I tried using ":GetChildren()" but I really have no clue how to use it... So thanks if you can help.

local tweenService = game:GetService("TweenService")


local clickDetector = workspace:WaitForChild("Clickmebutton").ClickDetector


local seconds = 120


clickDetector.MouseClick:Connect(function()
tweenService:Create(script.Parent.Parent:GetChildren(), TweenInfo.new(seconds, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(101.737, 1.527, -299.772)}):Play()
end)

I'm a bit of a noob, so please go easy on me!

1 answer

Log in to vote
0
Answered by
Fifkee 2017 Community Moderator Moderation Voter
5 years ago
Edited 5 years ago
Ad

Answer this question