When part touched, give leaderstats

local part = script.Parent

part.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
		player.leaderstats.Team.Value = "Pink"
	end
end)

Last updated