BLOXBUILDS
Discord
Back
OBBY

Disappearing Platform

Paste as a Script inside a platform. After a player steps on it, the platform vanishes and then comes back. Change the two wait times at the top.

-- Paste as a Script inside a platform part.

local HIDE_DELAY = 0.6
local RETURN_DELAY = 2

local part = script.Parent
if not part or not part:IsA("BasePart") then
	return
end

local busy = false

part.Touched:Connect(function(hit)
	local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")
	if not humanoid or busy then
		return
	end

	busy = true
	task.wait(HIDE_DELAY)
	part.CanCollide = false
	part.Transparency = 1
	task.wait(RETURN_DELAY)
	part.CanCollide = true
	part.Transparency = 0
	busy = false
end)