Hi I am trying to tween a airplane seat and I want to tween it by pressing a textbutton. But it’s not working. When i press nothing happens. No Errors.
Here is my Code.
script.Parent.Parent.Seat.Script.GuiS.TextButton.MouseButton1Click:Connect(function()
local TweenService = game:GetService("TweenService")
local visible = script.Parent.Parent["Seat"]
local invisible = script.Parent["Seat"]
local goal = {}
goal.Position = invisible.Position
goal.Orientation = invisible.Orientation
local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(visible, tweenInfo, goal)
tween:Play()
end)
Nope it doesn’t print anything related to that code
18:16:10.791 Classic Baseplate auto-recovery file was created - Studio
18:16:12.708 Waited. - Server
18:16:14.215 Waited. - Client
18:16:15.035 Requiring asset 6738245247.
Callstack:
cloud_2971874773.Atmos.PluginUpdates, line 36
cloud_2971874773.Atmos.PluginUpdates, line 35 - getLatestVersion
cloud_2971874773.Atmos.Script, line 322
- Server
18:16:15.718 [TCH] You aren't in team create yet! Enable team create so Team Create Hats can function properly. - Server
18:16:17.218 [TCH] You aren't in team create yet! Enable team create so Team Create Hats can function properly. - Client