Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I finish/fix this script?

Asked by 10 years ago

local stats = player:findFirstChild("leaderstats") stats.Score.Value = 0

if (not paused) then for _,v in pairs(workspace.Obstacles:GetChildren()) do v.Position = (v.Position+UDim2.new(0,-6,0,0)) --4 if ((v.Position.Y.Scale == 0) and (bird.AbsolutePosition.X > (v.AbsolutePosition.X+v.AbsoluteSize.X)) and (not same_ob(v.Name))) then stats.Score.Value = stats.Score.Value + 1 table.insert(logs,v.Name) end if (v.AbsolutePosition.X < 435) then v:Remove() end

        end

end

This should work But it doesnt , it is the part that allows the Leaderstat to go up when the bird goes through the pipe

0
You may want to use a Code Block to format the script you posted, it'll be easier for us to read it and figure out what is going wrong that way ;) duckwit 1404 — 10y
0
Yea, use the code block I can't understand the code at all alessandro112 161 — 10y

Answer this question