Why is my seat not tweening correctly?


Achieve

I’m attempting to make a realistic opening seat that you’d see in Stadiums and so on.

Issue

My issue is a very simple issue; i’m trying to tween my seat to be open, however it isn’t taking the parts that are welded to it with it.

Workarounds

None.

Attempts to Fix

  • Attempted Anchoring The Model,
  • Attempted Removing Welds,
  • Attempted CFraming Instead of Orientation,
  • Attempted Welds & WeldConstraints

Video of Issue

Click here to see the full issue.

Script

local TweenService = game:GetService("TweenService")

local Down = false
script.Parent.ClickDetector.MouseClick:Connect(function(Clicker)
	if script.Parent:FindFirstChild("Bottom") and script.Parent.Bottom:FindFirstChild("Seat") then
		local Seat = script.Parent.Bottom.PrimaryPart
		print(Seat)
		if Down then
			TweenService:Create(Seat,TweenInfo.new(.5),{Orientation = Vector3.new(0,0,-40)}):Play()
			Down = false
		else
			TweenService:Create(Seat,TweenInfo.new(.5),{Orientation = Vector3.new(0,0,0)}):Play()
			print("Seat Down")
			Down = true
		end
	end
end)


Thank you for your assistance.

This may help you with tweening models Introduction to Tweening Models

1 Like

Orientation is not a thing inside a part. Try Position instead. (If you want it to move, otherwise keep orientation and disregard this reply.)

1 Like