Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TopFrame = script.Parent.TopFrame
- local BottomFrame = script.Parent.BottomFrame
- local players = game:GetService("Players"):GetPlayers()
- local PlayersAmount = script.PlayersAmount
- TopFrame.SkipFrame.SkipButton.MouseButton1Click:Connect(function()
- PlayersAmount.Value += 1
- end)
- PlayersAmount:GetPropertyChangedSignal("Value"):Connect(function()
- TopFrame.SkipFrame.SkipButton.TextLabel.Text = "Skip ("..PlayersAmount.Value.."/"..#players..")"
- if PlayersAmount.Value >= #players then
- wait(3)
- TopFrame:TweenPosition(UDim2.new(0,0,-1,0),.1)
- BottomFrame:TweenPosition(UDim2.new(0,0,1,0),.1)
- end
- end)
- TopFrame.SkipFrame.SkipButton.TextLabel.Text = "Skip ("..PlayersAmount.Value.."/"..#players..")"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement