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

TouchSwipe problem, can you please help? [closed]

Asked by 9 years ago

This question already has an answer here:

TouchSwipe problem, anyone figure this out?

I don't understand why this won't work, I went onto wiki and followed the instructions. I've been on the Forum quite some time asking but no one wishes to answer. Help?

function openside()
if on == false then
on = true
Background:TweenPosition(UDim2.new(0.5, 0, 0, 0))
MenuSelection:TweenPosition(UDim2.new(0,0,0,0))
repeat wait() until MenuSelection.Position == UDim2.new(0,0,0,0) and Background.Position == UDim2.new(0.5, 0,0,0)
on = false
end
end

function closeside()
if on == false then
on = true
Background:TweenPosition(UDim2.new(0, 0, 0, 0))
MenuSelection:TweenPosition(UDim2.new(-0.5,0,0,0))
repeat wait() until MenuSelection.Position == UDim2.new(-.5,0,0,0) and Background.Position == UDim2.new(0, 0,0,0)
on = false
end
end

MainBackground.TouchSwipe:connect(function(dir)
if dir == 0 then
openside()
elseif dir == 1 then
closeside()
end
end)
0
Are there blue lines under some of the words? EzraNehemiah_TF2 3552 — 9y
0
Do you have the variables used in the script defined? NotsoPenguin 705 — 9y
0
Any output? yumtaste 476 — 9y

Marked as Duplicate by EzraNehemiah_TF2, FearMeIAmLag, and evaera

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?