So I’m trying to make an exit tween for a UI, and every time I want to change the position of a Frame, it says the property doesn’t exist, although the property does exist when viewing the properties tab. I’ve looked on a few forums and have even tried :TweenPosition() but nothing has worked so far. It errors for both frames.
It was a typo.
The error I keep getting:
Pathways (with the script highlighted):
This is the part of the server script that keeps erroring:
close.MouseButton1Click:Connect(function()
local a = ts:Create(script.Parent, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.In), {Positon = UDim2.new(2.255, 0, 0.255, 0)})
local b = ts:Create(script.Parent.Parent.Backframe, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.In), {Positon = UDim2.new(2.25, 0, 0.25, 0)})
a:Play()
b:Play()
b.Completed:Wait()
script.Parent.Visible, script.Parent.Parent.Backframe.Visible = false, false
script.Parent.Parent.Enabled = false
end)