I am trying to make a tutorial for my game which tweens the information but its not working!
local deb = false
script.Parent.MouseButton1Click:connect(function()
if not deb and script.Parent.Parent.Story.Text == "Ok nub, your goal is to become the best, dankest, mlgest quickscoper in the world. I'll show you how to quickscope, ya nub." then
deb = true
script.Parent:TweenPosition(UDim2.new(-1,0,.575,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(-1,0,.375,0), "Out", "Elastic", 2)
script.Parent.Parent.SkipButton:TweenPosition(UDim2.new(-1,0,.675,0), "Out", "Elastic", 2)
script.Parent.Parent.Story.Text = "Ok nub, this is your doritos. You get doritos by quickscoping noobs and stealing their doritos, and by running a smuggling business."
script.Parent.Parent.Display:TweenPosition(UDim2.new(0,0,0,0),"Out", "Elastic", 2)
script.Parent:TweenPosition(UDim2.new(.375,0,.575,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(.25,0,.3,0), "Out", "Elastic", 1)
elseif not deb and script.Parent.Parent.Story.Text == "Ok nub, this is your doritos. You get doritos by quickscoping noobs and stealing their doritos, and by running a smuggling business." then
deb = true
script.Parent:TweenPosition(UDim2.new(-1,0,.575,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(-1,0,.375,0), "Out", "Elastic", 2)
script.Parent.Parent.Story.Text = "Look nub, a wild skrub lord has appeared! Quickscope it for some doritos!"
script.Parent:TweenPosition(UDim2.new(.375,0,.575,0),"Out", "Elastic", 2)
script.Parent.Parent.Doritos:TweenPosition(UDim2.new(.375,0,.25,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(.25,0,.3,0), "Out", "Elastic", 1)
elseif not deb and script.Parent.Parent.Story.Text == "Look nub, a wild skrub lord has appeared! Quickscope it for some doritos!" then
deb = true
script.Parent:TweenPosition(UDim2.new(-1,0,.575,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(-1,0,.375,0), "Out", "Elastic", 2)
script.Parent.Parent.Story.Text = "Ok nub, this is your menu, everything useful will be in here, go ahead and purchase some items! Thats all I can teach you for now!"
script.Parent:TweenPosition(UDim2.new(.375,0,.575,0),"Out", "Elastic", 2)
script.Parent.Parent.MenuButton:TweenPosition(UDim2.new(.375,0,.805,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(.25,0,.3,0), "Out", "Elastic", 1)
elseif not deb and script.Parent.Parent.Story.Text == "Ok nub, this is your menu, everything useful will be in here, go ahead and purchase some items! Thats all I can teach you for now!" then
deb = true
script.Parent:TweenPosition(UDim2.new(-1,0,.575,0), "Out", "Elastic", 2)
script.Parent.Parent.Story:TweenPosition(UDim2.new(-1,0,.375,0), "Out", "Elastic", 2)
wait(.5)
deb = false
end
end)
