Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queueingTap
- --Place this in a part named queueButton
- _G.list = {}
- _G.queueSize = 0
- local function readyUp(newPlayer)
- local queued = newPlayer:FindFirstChild("queued")
- if not queued then
- local boolean = Instance.new("BoolValue",newPlayer)
- boolean.Name = "queued"
- boolean.Value = true
- _G.queueSize = _G.queueSize + 1
- print("Debug: Queue Size is now " .. _G.queueSize)
- table.insert(_G.list,1,newPlayer)
- for i = 1,#_G.list do
- print(_G.list[i])
- end
- end --If not queued
- end --Ready Up Function
- script.Parent.ClickDetector.MouseClick:connect(readyUp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement