What do you want to achieve? Keep it simple and clear!
Me and my friend are trying to make a spleef game (which you basically know what i am trying to achieve now)
What is the issue? Include screenshots / videos if possible!
The issue is that when an R6 avatar spawns in the air and then falls in the spleef part, the spleef part doesn’t dissapear
Here is the script:
local debounce = true
script.Parent.Touched:Connect(function()
if debounce == true and script.Parent.Transparency < 0.7 then
debounce = false
script.Parent.Transparency = 0.1
wait(0.06)
script.Parent.Transparency = 0.2
wait(0.06)
script.Parent.Transparency = 0.3
wait(0.06)
script.Parent.Transparency = 0.4
wait(0.06)
script.Parent.Transparency = 0.5
wait(0.06)
script.Parent.Transparency = 0.6
wait(0.06)
script.Parent.Transparency = 0.7
script.Parent.CanCollide = false
wait(0.06)
script.Parent.Transparency = 0.8
wait(0.06)
script.Parent.Transparency = 0.9
wait(0.06)
script.Parent.Transparency = 1
debounce = true --Part becomes Collideable and visible when the round ends
end
end)
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I didn’t find any solution in there.
local debounce = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and debounce then
debounce = false
for T = 0,1,0.1 do
script.Parent.Transparency = T
wait(0.06)
end
script.Parent.CanCollide = true
debounce = true
end
end)