Disappering Platform

I’m Trying to make a platform where you stand on it and it disappears for 15 seconds and comes back. Any ideas How to do it?

You can write something like

script.Parent.Touched:Connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
for i = 10,0,-1 do
script.Parent.Transparency += 0.1
wait()
end
script.Parent.CanCollide = false
wait(15)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
end)

Or there is free models in the toolbox, search “Disappearing stairs” and look at the code

How would i make it so they also fall through it

theres a error at the Can collide part

Computers are really specific, they do exactly what you tell them to and only that. (except AI)

The problem with the Cancollide is that the property you are trying to change is called CanCollide. Capitalization is important here. Also reading the error messages can give you insight as to what might be wrong with your scripts.

script.Parent.Touched:Connect(function(hit)
	if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
		for i = 10,0,-1 do
			script.Parent.Transparency += 0.1
			wait()
		end
		script.Parent.CanCollide = false
		wait(15)
		script.Parent.CanCollide = true
		script.Parent.Transparency = 0
	end
end)

I know you probably didn’t understand what I mean so here’s the fixed script. I hope you learn to script and do get good at it in the future.

Good luck.

CanCollide is written in your script as Cancollide.

script.Parent.Touched:Connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
for i = 10,0,-1 do
script.Parent.Transparency += 0.1
wait()
end
script.Parent.CanCollide = false
wait(15)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
end)

Another easy way is to do this:

local part = script.Parent
part.Touched:Connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
for i = 10,0,-1 do
part.Transparency += 0.1
wait()
end
part.CanCollide = false
wait(15)
part.CanCollide = true
part.Transparency = 0
end
end)

If this does not work, try printing numbers under every line.
if your output says something like 1 2 4 5, it means wherever you put 3, it is not working.