يسوي عواميد فلابي بير ب اماكن فتحه عشوائيه ويتحرك
الإصدار الأول من المشروع
ban · 27/10/2026، 1:36 م
i829bug5iiia
2 ملف تغيّر · +56 −0
| 1 | حطه بسكربت داخل سيرفر سكربت سيرفرس |
| 1 | local FLOOR_Y = 0 | |
| 2 | local CEILING_Y = 50 | |
| 3 | local GAP_SIZE = 14 | |
| 4 | ||
| 5 | local Run = game:GetService("RunService") | |
| 6 | ||
| 7 | local function createPipePair(x) | |
| 8 | local gabcanter = math.random(FLOOR_Y + GAP_SIZE,CEILING_Y - GAP_SIZE) | |
| 9 | ||
| 10 | local gapBottom = gabcanter - (GAP_SIZE) / 2 | |
| 11 | local gaptop = gabcanter + (GAP_SIZE) / 2 | |
| 12 | ||
| 13 | local hightBottom = gapBottom - FLOOR_Y | |
| 14 | local highttop = CEILING_Y - gaptop | |
| 15 | ||
| 16 | local CanterBottom = (FLOOR_Y + gapBottom) / 2 | |
| 17 | local centerTop = (gaptop + CEILING_Y) / 2 | |
| 18 | ||
| 19 | local partBottom = Instance.new("Part") | |
| 20 | partBottom.Size = Vector3.new(4,hightBottom,4) | |
| 21 | partBottom.Position = Vector3.new(x,CanterBottom,0) | |
| 22 | partBottom.Parent = workspace.Folder | |
| 23 | partBottom.Anchored = true | |
| 24 | ||
| 25 | local partTop = Instance.new("Part") | |
| 26 | partTop.Size = Vector3.new(4,highttop,4) | |
| 27 | partTop.Position = Vector3.new(x,centerTop,0) | |
| 28 | partTop.Parent = workspace.Folder | |
| 29 | partTop.Anchored = true | |
| 30 | ||
| 31 | local Runservice | |
| 32 | ||
| 33 | Runservice = Run.Heartbeat:Connect(function(dt) | |
| 34 | partTop.Position = partTop.Position + Vector3.new(20 * dt,0,0) | |
| 35 | partBottom.Position = partBottom.Position + Vector3.new(20 * dt,0,0) | |
| 36 | end) | |
| 37 | ||
| 38 | ||
| 39 | ||
| 40 | ||
| 41 | ||
| 42 | task.delay(5,function() | |
| 43 | Runservice:Disconnect() | |
| 44 | partTop:Destroy() | |
| 45 | partBottom:Destroy() | |
| 46 | end) | |
| 47 | ||
| 48 | ||
| 49 | ||
| 50 | end | |
| 51 | ||
| 52 | ||
| 53 | while task.wait(1) do | |
| 54 | createPipePair(10) | |
| 55 | end |