local Hexagon = script.Parent
local db = true
local setting = game.Workspace.Hexagon.Settings
local waitTime = setting.FadeTime
local amount = setting.FadeAmount
Hexagon.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid and db == true then
db= false
wait(0.3)
while db == false do
Hexagon.Transparency += amount.Value
wait(waitTime.Value)
if Hexagon.Transparency >=1 then
db = true
Hexagon.CanCollide = false
end
end
end
end)
while true do
wait()
if setting.Resetting.Value == 2 then
Hexagon.Transparency = 1
Hexagon.CanCollide = false
wait(3)
Hexagon.Transparency = 0
Hexagon.CanCollide = true
end
end
** You are now Level 1! **