-- Simulate "pull" – destroy the block block:Destroy()
-- Check for fallen blocks (any block moved far from original Y) local fallen = false for _, b in ipairs(tower:GetChildren()) do if b:GetPivot().Y < 2 then -- arbitrary height threshold fallen = true break end end Simple Jenga Script
-- Optional: add a small wait to see if tower stands task.wait(0.2) -- Simulate "pull" – destroy the block block:Destroy()
if fallen then print(currentPlayer .. " made the tower fall! Game over.") return false end Simple Jenga Script
local function removeBlock(block) if not block or not block.Parent then return false end