-
I want primarypart and body to tween at the same time.
-
On the first click, only the body tweens. https://gyazo.com/e67926b91af675ac9ca2578f5cac7fb7
-
Looked on the forums and could not find anything relating to this.
test.MouseButton1Click:Connect(function()
if not debounce then
debounce = true
if not open then
local goal = {}
goal.Position = openPos
local tween = TS:Create(PrimaryPart, TweenInfo.new(1), goal):Play()
local goal2 = {}
goal2.Position = cargopos
local tween2 = TS:Create(body, TweenInfo.new(1), goal2):Play()
wait(1)
open = true
elseif open then
local goal = {}
goal.Position = closePos
local tween = TS:Create(PrimaryPart, TweenInfo.new(1), goal):Play()
local goal2 = {}
goal2.Position = carbackpos
local tween2 = TS:Create(body, TweenInfo.new(1), goal2):Play()
wait(1)
open = false
end
debounce = false
end
end)