Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

TweenPosition is not a valid member of Frame?

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

✓ Accepted answer
frame:TweenPostition(UDim2.new(-1, 0,0, 0))

You misspelled "Position."

frame:TweenPosition(UDim2.new(-1, 0,0, 0))

1 comment

1

thanks lol

This discussion is preserved as it was. New answers, comments, and votes are closed.