Script that is a child of a part that when touched, you change into an outfit
function onTouched(part)
local character = part.Parent
local players = game:GetService("Players")
local player = players:GetPlayerFromCharacter(part.Parent)
local shirt = character:FindFirstChildOfClass("Shirt")
local pants = character:FindFirstChildOfClass("Pants")
if not shirt then
shirt = Instance.new("Shirt", character)
end
if not pants then
pants = Instance.new("Pants", character)
end
if player.Team == "Red" then
shirt.ShirtTemplate = "rbxassetid://136056214"
pants.PantsTemplate = "rbxassetid://136056214"
end
if player.Team == "Blue" then
shirt.ShirtTemplate = "rbxassetid://136056667"
pants.PantsTemplate = "rbxassetid://136056667"
end
end
script.Parent.Touched:connect(onTouched)

3 comments
I will test it to check for errors BHreghdsifodsiu
ok
crap he already did it