Hello, I am an noobie scripter. So I don’t know much about scripting.
When I was making this part that when a human touches it is supposet to fall. But yet i have the thing set up as (a human touches it (wait 0.2 seconds)) but yet it only works for one of the block. I tried to make it like:
so, it works, but… I have two parts right… and I have the script in both of th blocks/parts but when I touch the first part it unanchores, but when I touch the second part, it doesn’t. The same script in the same block. (So like one script go in one bock, and one script goes in the second block (same script))
no just named part. (and yes Ive tryed to alter the script and alter the name of the block. So like Nameing the block Part1 and changing the script to Part1 and same for the other part but just named Part2.
local Part = game.Workspace.Part
local Debounce = false
local function Anchor(Hit)
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then --Make sure the part that got hit is a Character
if Debounce == false then -- Stops function from being spammed
Debounce = true
Part.Anchored = true
wait(1)
Part.Anchored = false
wait(1)
Debounce = false
end
end
end
Part.Touched:Connect(Anchor)