Squid game GlassBridge script at description
ฝัง
- เผยแพร่เมื่อ 11 ก.พ. 2025
- -- SUB TO⚠️ TINYSKULL YT⚠️
local GlassBridge = game.Workspace:FindFirstChild("GlassBridge")
-- List of pairs of glass parts TOOK ME 20MINUTES
local pairs = {
{"GlassL1", "GlassR1"},
{"GlassL2", "GlassR2"},
{"GlassL3", "GlassR3"},
{"GlassL4", "GlassR4"}
}
-- Function to assign hard and breakable parts
for i = 1, #pairs do
local pair = pairs[i]
local part1 = GlassBridge:FindFirstChild(pair[1])
local part2 = GlassBridge:FindFirstChild(pair[2])
if part1 and part2 then
-- Randomly decide which part is hard and which one is breakable
local hardPart = math.random(1, 2) == 1 and part1 or part2
local breakablePart = (hardPart == part1) and part2 or part1
-- Make the breakable part collapse on touch
breakablePart.Touched:Connect(function(hit)
if hit and hit.Parent:FindFirstChild("Humanoid") then
breakablePart.Transparency = 1
breakablePart.CanCollide = false
breakablePart.Anchored = false
breakablePart:BreakJoints()
end
end)
-- Ensure the hard part is unbreakable
hardPart.Touched:Connect(function(hit)
if hit and hit.Parent:FindFirstChild("Humanoid") then
print(hardPart.Name .. " is hard and cannot break!")
end
end)
else
warn("One or both parts in pair " .. pair[1] .. " and " .. pair[2] .. " are missing!")
end
end