local t = 1
local step = 0.5
local part = script.Parent
part.Touched:Connect(function(hit)
character = hit.Parent
if character then
humanoid = character:FindFirstChild("Humanoid")
if humanoid then
function A()
while t > 0 do
script.Parent.Transparency = t
t = t - step
task.wait(0.50)
end
end
end
end)
do A()```
#PLS I NEED THIS
1 messages · Page 1 of 1 (latest)
why this script aint working
local t = 1
local step = 0.5
local part = script.Parent
function A()
part.Touched:Connect(function(hit)
character = hit.Parent
if character then
humanoid = character:FindFirstChild("Humanoid")
if humanoid then
while t > 0 do
script.Parent.Transparency = t
part.CanCollide = false
part.CanTouch = false
task.wait(0.50)
part.Transparency = t - 25
part.CanCollide = true
part.CanTouch = true
task.wait(0.50)
part.Transparency = t - 50
part.CanCollide = true
part.CanTouch = true
task.wait(0.50)
part.Transparency = t - 75
part.CanCollide = true
part.CanTouch = true
task.wait(0.50)
part.Transparency = t - t
part.CanCollide = false
part.CanTouch = false
end
end
end
end)
end
task.wait(1.50)
do A() end```
this either
local t = 1
local step = 0.5
local part = script.Parent
local function A()
part.Touched:Connect(function(hit)
end)
character = hit.Parent
if character then
humanoid = character:FindFirstChild("Humanoid")
if humanoid then
while t > 0 do
script.Parent.Transparency = t
part.CanCollide = false
part.CanTouch = false
task.wait(0.75)
part.Transparency = t - 75
part.CanCollide = true
part.CanTouch = true
task.wait(0.75)
part.Transparency = t - 50
part.CanCollide = true
part.CanTouch = true
task.wait(0.75)
part.Transparency = t - 25
part.CanCollide = true
part.CanTouch = true
task.wait(0.75)
part.Transparency = t
part.CanCollide = false
part.CanTouch = false
task.wait(0.75)
part.Transparency = t - 25
part.CanCollide = true
part.CanTouch = true
task.wait(0.75)
part.Transparency = t - 50
part.CanCollide = true
part.CanTouch = true
task.wait(0.75)
part.Transparency = t - 75
part.CanCollide = true
part.CanTouch = true
task.wait(0.75)
part.Transparency = t-t
part.CanCollide = true
part.CanTouch = true
end
end
end
end
task.wait(1.5)
do A() end```
** You are now Level 1! **
THIS ALSO
are we genuinely ok
why would you
do this
that's a OFFENCE!
what the hellll
In computer programming, a for loop is a structured control flow statement that repeatedly runs a section of code until a condition is satisfied.
A for loop has two parts: a header and a body. The header defines how the loop iterates, and the body is the code executed once per iteration. The header often declares a loop variable which can be use...
** You are now Level 1! **
"PLEASE SPEED I NEED THIS" ahh while aint even saying whats wrong
** You are now Level 3! **