Depending on the team, I’d like to know how to get them to wear armor (Model) automatically
Check for the Player.Team.Name, then if its the right thing, insert the armour in their character
But I don’t know how to check when a user joined, and how to make the user wear it again when the user respawned.
I still don’t know xd, Just I need help about scripting.
I’d recommend first getting into the basics, so you can understand things like loops, instances, events, if/else statements, before you try scripting things
It is solved to automatically provide armor when joining server or respawning But I don’t know how to check the team name and put it on.
Is need I use If player.team.name == “name” then
~~ etc ?
You could do something like this
game.Players.PlayerAdded:Connect(function(plr)) -- gets the player and detects when player joins
plr.CharacterAdded:Connect(function(char)) --detects when a player spawns in game and gets the character
local CharacterTeam = plr.Team
if CharacterTeam == " " then -- whatever team name
--scripts here
elseif CharacterTeam == "" then do-- whatever team
--scripts here
end
end)
end)
It shld work fine
Also, local CharacterTeam = plr.Team Should be plr.Team.Name or It’s not works, so I fixed it.
yeah something like that sorry,didnt test it out in roblox studio glad it worked!