Your model should look like this. Inside of the character is all of the character parts.
Along with that, the script should look like this:
local portal = script.Parent.Portal.Portal
local plate = script.Parent:WaitForChild(“Pressure Plate”)
local walls = script.Parent.Walls
local doc = script.Parent:WaitForChild(“Dr. James Calimari”)
local function OnTouch(Hit)
if Hit.Parent:FindFirstChild(“Humanoid”) then
walls.Wall1.CanCollide = false
walls.Wall2.CanCollide = false
walls.Wall3.CanCollide = false
portal.Transparency = 1
for i,v in pairs(doc:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency = 1
end
end
end
When you say it isn’t working, what do you mean?
The way the script is set up, when the player touches the pressure plate, the portal goes transparent and the walls turn CanCollide false.
There isn’t anything here that changes those things back to visible and CanCollide true though.
Is the Portal just working once? Is it not working at all?
You have to learn how to describe what is or isn’t happening since we can’t see what’s going on or read your mind.
Imagine you are trying to explain it to a 5 year old. Explain it simply, but not assuming that we know anything about what you are explaining.
Okay so basically what happens is that in the script when the player touches it the walls can colitis off and the portal disappear but what happens is that when I walk on the pressure plate nothing happens nothing changes it just stays the same as before