So i was experiment to make team only healing script, but turns out it didn't work. And it doesn't show any error, so i was wondering if i did anything wrong. (here's the code) while true do
for i, v in pairs(game.Teams["Vampire"]:GetPlayers()) do
local v = part.Parent:findFirstChild("Humanoid")
if v~=nil then
v.Health = v.Health + 2
end
wait(1)
end

2 comments
Is this inside any event?
no