Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I was asked to rewrite my question. About writing a code about team appearances? [closed]

Asked by 5 years ago

Hello I am trying to make my teams spawn with there own set of clothes and hats. I have this one script that works only if I put it in workspace ( shirt and pants work but hat id doesnt), but it doesnt work with the seperate teams. If anyone knows a script that is able to assign shirts, pants, and hats to a certain team, please let me know thank you. I am new to scripting so please be specific in telling me what to do thank you. I am just looking for help in making a script that makes each team have there own shirt, pants, and hat. Thanks

Closed as Not Constructive by User#23365, aazkao, Vulkarin, and User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
aazkao 787 Moderation Voter
5 years ago
Edited 5 years ago

You use an if statement and check if the player is inside a team

if Player.Team == game.Teams.RedTeam then
  --give stuff
else if Player.Team == game.Teams.BlueTeam then
  --givestuff
end'
end
0
Thank you for the help, but how would I write the code for giving the clothes, hats, and pants. Thanks Flognaw3210 25 — 5y
0
dont request User#23365 30 — 5y
0
Sorry but this is probably the most help you will get from the community, no one is going to make a script for you, this community isnt about requesting people to do things for you aazkao 787 — 5y
Ad