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

Character is not able to walk through a Union?

Asked by 6 years ago
Edited 6 years ago

I have a hall that you should be able to walk through once you touch a part and not walk through the walls, but when I go to walk through the hall once I've touched the part, the hall union will not allow me to walk through. It is specifically the hall union because I am able to walk through the hole in the wall without the hall. Script:

local BorderPart = workspace.Border.PartFive
BorderPart.Transparency = 0
BorderPart.CanCollide = true

local HallFive = BorderPart.Parent.HallFive
local WallFive = HallFive.Parent.UnionFive
HallFive.Transparency = 0
WallFive.Transparency = 0
HallFive.CanCollide = false
WallFive.CanCollide = false

script.Parent.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild('Humanoid') then
        BorderPart.CanCollide = false
        HallFive.CanCollide = true
        WallFive.CanCollide = true
        wait()
        end
end)

1
Try negating the union and setting the parts CanCollide to false hellmatic 1523 — 6y
0
I would use a collision group User#5423 17 — 6y
0
Me too. marketmanager1 52 — 6y
0
try exporting the union to an obj file then insert it as a meshpart. this will resolve the invisible walls/incorrect collisions problem LeadRDRK 437 — 6y

Answer this question