How to make morphs on specific teams

I’m trying to make game similar to half life but I need morphs and theres question, how do I make starter morphs for specific teams?

Hello. Maybe this post will help you out.
Getting morph when joining a team

1 Like

Maybe this can help me but I don’t have any group on roblox.

You don’t have to take the exact script, maybe if you look closely at the lines you’ll learn something on how to do it!

Okay, I will try to make something from the script.

It was an old post and didn’t work well, however I have a script for you. You must add scripts for each Bodypart, like Head, Torso, etc.

Morphs usually have 4 models for each bodypart.

game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c)
		local char = c
		local player = p
		if player.Team == game.Teams["Combative Forces"] then -- Change to your team you want this morph.
			if player:GetRankInGroup(7656235) == 6 then -- Change to your group, if you don't want it to be group bound, remove this line and an end.
				local g = script.Parent.Parent.Chest:clone() -- Rename Chest to the part you use for your Bodypart. Also make sure to use the right location for script.Parent.Parent..
				g.Parent = char
				local C = g:GetChildren()
				for i=1, #C do
					if C[i].className == "Part" or C[i].className == "UnionOperation" or C[i].className == "WedgePart" or C[i].className == "MeshPart"  then
						local W = Instance.new("Weld")
						W.Part0 = g.Middle
						W.Part1 = C[i]
						local CJ = CFrame.new(g.Middle.Position)
						local C0 = g.Middle.CFrame:inverse()*CJ
						local C1 = C[i].CFrame:inverse()*CJ
						W.C0 = C0
						W.C1 = C1
						W.Parent = g.Middle
					end
					local Y = Instance.new("Weld")
					Y.Part0 = char.Torso -- Rename Torso to the Bodypart, can be Torso, Head, char["Right Leg"] or char["Left Leg"]
					Y.Part1 = g.Middle
					Y.C0 = CFrame.new(0, 0, 0)
					Y.Parent = Y.Part0
				end
				local d = char:GetChildren() 
				local h = g:GetChildren()
				for i = 1, # h do
					if h[i].className == "Part" or C[i].className == "UnionOperation" or C[i].className == "WedgePart" or C[i].className == "MeshPart"  then
						h[i].Anchored = false
						h[i].CanCollide = false

					end
				end
			end
		end
	end)
end)

Thanks, I will try to do something with it