![]() TweenService:Create(sweeper.PrimaryPart, TweenInfo.new(1,, ), ):Play() If hit.Name = "BowlingBall" and not alreadycleaning thenīowlingpins = bowlingLane ![]() Table.remove(passedFirstTest, table.find(passedFirstTest, pin))įor _, v in bowlingLane.ANCHORS:GetChildren() do If pin:IsA("MeshPart") and string.sub(pin.Name, 1, 3) = "pin" and string.sub(pin.Name, 5, 6) = i then Pin:FindFirstChild("stand").Position.z + pin:FindFirstChild("stand").Size.z/2) ) ) Pin:FindFirstChild("stand").Position.y + pin:FindFirstChild("stand").Size.y/2, Pin:FindFirstChild("stand").Position.x + pin:FindFirstChild("stand").Size.x/2, Pin:FindFirstChild("stand").Position.z - pin:FindFirstChild("stand").Size.z/2 Pin:FindFirstChild("stand").Position.y - pin:FindFirstChild("stand").Size.y/2, Pin:FindFirstChild("stand").Position.x - pin:FindFirstChild("stand").Size.x/2, Local stand = workspace:FindPartsInRegion3(Region3.new( Vector3.new( since we know that it didnt pass that sinngle check, we can now see if any pins are standing in their correct desired position. If pin:IsA("MeshPart") and string.sub(pin.Name, 1, 3) = "pin" then ![]() prevent error from index number with 'typeof' + /2) ) )įor _, pin in pairs(pinsStillStanding) do Local pinsStillStanding = workspace:FindPartsInRegion3(Region3.new( Vector3.new( passed first test, are the pins standing? Local sweeperKeyFrames = sweeper.Keyframes ![]() Local scooper = bowlingLane.scooper - thing that picks up ur pins Local replicatedStorage = game:GetService("ReplicatedStorage") local tweenService = game:GetService("TweenService") i thought i had done the math logic right since i’m checking for both, WHETHER the bowling pin has fallen to its side, and that the bowling pin is still around in the spot that it should be. the code below is basically the entire system for how i do the bowling lane. ![]() RobloxScreenShot20230725_113301958 1920×643 61.7 KBĪs for the pins that just don’t get picked up, i’m not sure what’s causing that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |