so i made a script on tables and this is what i came up ( i got it from freemodels then modified it a bit so im actually trying to learn how to script plss dont sue me from copying it @_@)
ppl = 1
repeat
ppl = ppl + 1
p = game.Players:GetChildren()
team2 = {}
team3 = {}
for num, obj in pairs(p) do
if obj then
if obj.PlayerGui.Play.Alive.Value then
if obj.TeamColor == BrickColor.new("Bright red") then
table.insert (team2,obj)
elseif obj.TeamColor == BrickColor.new("Bright blue") then
table.insert (team3,obj)
end
end
end
so it is possible to make a script where in if player in team3 touched a part named blah blah blah(only team3 can touch it) then blah blah happens? if yes so how? ow and where can i learn scripting?

2 comments
What happens if it isn't a person from Team3
nothing happens.