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

TweenPosition is not a valid member of Frame?

Asked by 3 years ago

I'm trying to make a simple tween GUI, but for some reason it's not working because of the error in the title above. Here's my script:

local gui = script.Parent.Parent.Parent
local frame = gui.mainframe
local frame2 = gui.teamframe

frame.play.MouseButton1Click:Connect(function()
    frame:TweenPostition(UDim2.new(-1, 0,0, 0))
    frame2:TweenPosition(UDim2.new(0, 0,0, 0))
end)

1 answer

Log in to vote
0
Answered by
Rinpix 639 Moderation Voter
3 years ago
frame:TweenPostition(UDim2.new(-1, 0,0, 0))

You misspelled "Position."

frame:TweenPosition(UDim2.new(-1, 0,0, 0))
1
thanks lol TheStarWarsMaster856 12 — 3y
Ad

Answer this question