debounce = false script.Parent.Touched:Connect(function(event) if debounce == false then…
- User
debounce = false
script.Parent.Touched:Connect(function(event) if debounce == false then debounce = true if event.Parent:FindFirstChild("Humanoid") ~= nil then repeat script.Parent.Transparency = script.Parent.Transparency + .1 wait(.05) print(script.Parent.Transparency) until script.Parent.Transparency >= 1 script.Parent.Transparency = 1 script.Parent.CanCollide = false print("done with FADE") wait(3) print("start re appear") repeat script.Parent.Transparency = script.Parent.Transparency - .1 wait(.05) print(script.Parent.Transparency) until 0 >= script.Parent.Transparency script.Parent.Transparency = 0 script.Parent.CanCollide = true print("done with RE APPEAR") end wait(.2) debounce = false end end)
how do i make it so that this script in Roblox Studio Luau works in every part that is placed in a folder in the workspace named "DisappearingBlocks"
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.