Ok I'm trying to get this to click to the next frame to the next etc... but I have no idea how.

local Itemframe = script.Parent.Parent.Main.Itemframe
local bounce = false
script.Parent.MouseButton1Click:connect(function()
if bounce == false then
Itemframe:TweenSizeAndPosition(UDim2.new(1,0,0.4,0),UDim2.new(1,0,0,0),"Out","Back",1)
wait(1)
bounce = true
elseif bounce == true then
Itemframe:TweenSizeAndPosition(UDim2.new(1,0,0.5,0),UDim2.new(0.8,0,0,0),"Out","Back",1)
wait(1)
elseif bounce == false then
Itemframe:TweenSizeAndPosition(UDim2.new(1,0,0.6,0),UDim2.new(0.6,0,0,0),"Out","Back",1)
wait(1)
bounce = true
elseif bounce == true then
Itemframe:TweenSizeAndPosition(UDim2.new(1,0,0.7,0),UDim2.new(0.4,0,0,0),"Out","Back",1)
wait(1)
bounce = false
end
end)

4 comments

0

is there any errors in the output?

0

No there is not

0

I edited the description a bit I forgot to add it

0

We need to know more information if we're going to help you. All we know is that you're trying to make something click "to the next frame" - what does that mean? Elaborate and supply details about what's not working and what you want it to do, hierarchy, etc.. please.