How would I make a part able to change your team and kill you?

So I have 2 parts, they’re named “Kill” Both of them. They’re inside a folder named “KillParts” in workspace. How would I make it so if you touch those parts your team will change to “Humans” and if u touch it you will die. How could I do this?

image

Scripting support is generally for help with preexisting scripts. Here is some API that will help if you’re stuck.


For the part:


To add/edit a team:


I would recommend looking into a kill script from a free model if you’re looking for a place to start.


Edit: if you want to set up all the BaseParts in the folder with one script iterate through them with pairs() and Instance:GetChildren() and connect each part’s Touched event. I would recommend looking at the code examples at the bottom of the API also.

2 Likes

DM me in Discord I will give you the Model! I got a Change Team Model which base on your description or issue! It include Gamepass Team Changer, Group Rank Team Changer.

Discord: LR_Gladiator#2126