Hello. This is the server script of a collidable block. It doesn't output anything when I touch it OR when I don't touch it. That means that the for loop doesn't even work. Why?
local touchie=script.Parent:GetTouchingParts()
while true do
for i,v in pairs(touchie) do
print("The for loop works, cool")
yay=v.Parent:WaitForChild("Humanoid")
if yay then
game.GetService("Players"):GetPlayerFromCharacter(yay.Parent).invincibility.value=true
print("This message=giant success")
end
end
wait(0.01)
end

5 comments
Try putting touchie in the while loop
zboi what do you mena by that?
he means to write local touchie = script.Parent.:GetTouchingParts() inside the while loop
OMG WAIT THAT MIGHT BE IT
Aaaand nope it still doesn't work