How To make Roblox Obby On Roblox Studio! Pt1

Описание к видео How To make Roblox Obby On Roblox Studio! Pt1

How To make Roblox Obby On Roblox Studio! Pt1

Disappearing Block Code:
for i, v in pairs(script.Parent:GetChildren()) do

if v:IsA("Part") then

v.Touched:Connect(function(otherPart)

if otherPart.Parent:FindFirstChild("Humanoid") then

task.wait(0.5)

v.Transparency = 1
v.CanCollide = false

task.wait(2)

v.Transparency = 0
v.CanCollide = true
end
end)
end
end

Laser Block Code:
for i, v in pairs(script.Parent:GetChildren()) do

if v:IsA("Part") then

v.Touched:Connect(function(otherPart)

if otherPart.Parent:FindFirstChild("Humanoid") then

otherPart.Parent:FindFirstChild("Humanoid"):TakeDamage(100)

end
end)
end
end

I Am Struggling With The 2. Part

Комментарии

Информация по комментариям в разработке