You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want it so that the parts disappear locally to a player.
What is the issue? Include screenshots / videos if possible!
Right now if you step on the brick it will disappear, but it will also disappear for all players.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried putting it in a dictionary, but that didn’t work.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if hit.Parent:FindFirstChild("Humanoid") then
if not debouncetable[player.Name] then
debouncetable[player.Name] = true
wait(0.25)
script.Parent.Transparency = 0.75
script.Parent.CanCollide = false
wait(2.5)
script.Parent.Transparency = 0.25
script.Parent.CanCollide = true
debouncetable[player.Name] = false
end
end
end)