14:05:19.137 Players.ImNotAN00b_0kay.PlayerScripts.LocalScript:4: attempt to index nil with ‘Spys’ - Client - LocalScript:4 i got another error
local plr = game.Players.LocalPlayer
local Team = game:GetService(“Teams”)
wait(1)
if plr.Teams == Teams.Spys then
print(“Player is on spy team”)
end
14:06:54.881 Teams is not a valid member of Player “Players.ImNotAN00b_0kay” - Client - LocalScript:4
i even tried adding wait for child
damn i changed the wrong instance of team
local plr = game.Players.LocalPlayer
local Teams = game:GetService(“Teams”)
wait(1)
if plr.Team == Teams.Spys then
print(“Player is on spy team”)
end
5 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.