Run it
Copy the script and paste it into your executor.
gui = .()
gui.Name =
gui.IgnoreGuiInset =
gui.Parent = .Players.LocalPlayer:()
gameFrame = .()
gameFrame.Size = .(, , , )
gameFrame.BackgroundColor3 = .(, , )
gameFrame.Parent = gui
bird = .()
bird.Size = .(, , , )
bird.Position = .(, -, , -)
bird.BackgroundTransparency =
bird.Parent = gameFrame
birdFrames = {
,
,
}
currentFrame =
()
bird.Image = birdFrames[currentFrame]
currentFrame = currentFrame % #birdFrames +
()
(animateBird)
jumpButton = .()
jumpButton.Size = .(, , , )
jumpButton.Position = .(, -, , -)
jumpButton.Image =
jumpButton.BackgroundTransparency =
jumpButton.ZIndex =
jumpButton.Parent = gameFrame
isGameOver =
birdVelocity =
()
isGameOver
birdVelocity = -
jumpButton.Image =
()
jumpButton.Image =
jumpButton.MouseButton1Click:(jump)
exitButton = .()
corner = .()
exitButton.Size = .(, , , )
exitButton.Position = .(, -, , )
exitButton.Text =
exitButton.TextSize =
exitButton.Font =
exitButton.BackgroundColor3 = .(, , )
exitButton.TextColor3 = .(, , )
exitButton.ZIndex =
exitButton.Parent = gameFrame
corner.CornerRadius = .(, )
corner.Parent = exitButton
(height, isTop)
pipe = .()
pipe.Size = .(, , , height)
pipe.Image =
pipe.BackgroundTransparency =
pipe.BorderSizePixel =
isTop
pipe.Position = .(, , , )
pipe.Rotation =
pipe.Position = .(, , , -height)
pipe.Parent = gameFrame
pipe
()
_, child (gameFrame:())
child:() child.Image ==
birdPos = bird.AbsolutePosition
birdSize = bird.AbsoluteSize
pipePos = child.AbsolutePosition
pipeSize = child.AbsoluteSize
birdPos.X < pipePos.X + pipeSize.X birdPos.X + birdSize.X > pipePos.X
birdPos.Y < pipePos.Y + pipeSize.Y birdPos.Y + birdSize.Y > pipePos.Y
()
isGameOver
bird.Position = .(, -, , -)
birdVelocity =
jumpButton.Visible =
_, child (gameFrame:())
child:() child.Image ==
child:()
isGameOver =
birdVelocity = birdVelocity +
bird.Position = bird.Position + .(, , , birdVelocity)
() bird.Position.Y.Offset > gameFrame.AbsoluteSize.Y -
isGameOver =
jumpButton.Visible =
.(, ) ==
pipeHeight = .(, gameFrame.AbsoluteSize.Y - )
(pipeHeight, )
(gameFrame.AbsoluteSize.Y - pipeHeight - , )
_, child (gameFrame:())
child:() child.Image ==
child.Position = child.Position - .(, , , )
child.Position.X.Scale < -
child:()
()
(gameLoop)
exitButton.MouseButton1Click:(()
gui:()
)Flappy Bird Script

Universal