I'm trying to enable a script whenever a character loads but it never happens, what's the problem? Its in the serverscriptservice
game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAppearanceLoaded:Connect(function(Character) local DropSystem = Character:WaitForChild("DropSystem") if Player.Team.Name == not "Selection" then DropSystem.Parent.Disabled = false end end) end)
I don't think that "not" at line 5 should be there, instead you should change it with this:
game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAppearanceLoaded:Connect(function(Character) local DropSystem = Character:WaitForChild("DropSystem") if Player.Team.Name ~= "Selection" then DropSystem.Parent.Disabled = false end end) end)
if you want the if statement to check if the player's team name is not "Selection". But if you want the if statement to check is the player's team name is "Selection" just change the symbol '~' to '='.