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

Obbies not stacking but instead colliding, help please??

Asked by 5 years ago

I am trying to make a game like obby maker and I tried to make the stacking script but it isn't stacking properly, the obbies go through each other and collide with each other, is there an easier way??

And the check points arent moving to the end of each obby...

repeat wait() until game.Players.LocalPlayer
local function Start()
    local unfold = game.ReplicatedStorage.Obbies:GetChildren()
    local chosen = math.random(1, #unfold)
    local item = unfold[chosen]

    local obby = game.ReplicatedStorage.Obbies:FindFirstChild(item.Name)
    local new_director = obby:Clone()
    new_director.Parent = workspace
    local Positioning = game.ReplicatedStorage.Obby_Edit:FindFirstChild(item.Name)
    new_director:SetPrimaryPartCFrame(CFrame.new(workspace.CheckPoint_Old.Position+Vector3.new(3,0,0)))
    for _, v in pairs(new_director:GetDescendants()) do
        if v.Name == "EndPoint" then
            workspace.CheckPoint_New.Position = Vector3.new(v.Position+Vector3.new(3,0,0))
        end
    end
end

Start()

workspace.CheckPoint_New.Touched:Connect(function()

end)

Obbies is a folder in replicated storage with a bunch of obbies this is localscript and I don't want it regular script.. There is a "HitBox" and "EndPoint" in each object The primary part is HitBox the two checkpoints are in workspace

I would like help, thanks..

0
What happens to you that you are giving the same location I think. Do not? brok4d 77 — 5y

Answer this question