frame = script.Parent.Parent.Parent:WaitForChild("Frame")

function slide()
	frame:TweenPosition(UDim2.new(0.325,0,0.9,0), 'Out', 'Back', 2)
	
end

wait(10)
frame.Whoosh1:Play()
slide()

frame.TextButton.MouseButton1Down:connect(function()
	frame:TweenPosition(UDim2.new(0.325,0,0,0), 'In', 'Back', 1)
	wait(0.5)
	frame.Whoosh2:Play()
end)

Why roblox?

1 comment

0

Do you mind if you provide Hierarchy and Inheritance information (Who's the parent of the script, where the script is placed, where is the frame etc.? ). Also, did you use localscript or script