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

Why won't my tweening script work?

It's supposed to go from the left to the right at the top left corner of the screen then when the X is clicked it should go back out of the screen. What's wrong?

function open()
wait(1)
script.Parent.Frame:TweenPosition(UDim2.new(0,0,0,0),"In","Quad",1)
script.Parent.Frame.Button.Text = "Welcome to SIDRAT Laboratories, "..script.Parent.Parent.Parent.Name.."!"
end
open()
function close()
script.Parent.Frame:TweenPosition(UDim2.new(0,-500,0,0),"Out","Quad",1)
wait(3)
script.Parent:Destroy()
end

script.Parent.Frame.ButtonX.MouseButton1Down:connect(close)

1 comment

2

You messed up your fourth Argument in the 'TweenPosition' Methods: You must give it a Number, not a String. :P Also, if possible, please review the Output within the Studio, it may tell you what the exact problem is. :P

1 answer

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