Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Helmet Morph on Join, Requires rank?

i have everything i need but the morph for the helmet, i've made a custom helmet and want it to morph and be applied to the player on join, only if in group. i need the morph part. i know how to make it require the group.

1 comment

0

by the way you can't use this as a scripting request website, i learned that the hard way today

2 answers

You'll want to clone the morph, then use Welds or WeldConstraints to hold the morph together, and to attach the morph to the character's "Head" part.

WeldConstraints API Documentation Weld API Documentation

If you want them morphed every time they spawn, use the CharacterAdded event of the Player.

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		-- Attach morph
	end);
end)

NOTE: From my experience, using both Welds and WeldConstraints in the same model doesn't normally work as intended. My go-to is usually just sticking to Welds.

Player:IsInGroup(0000000) can be used to get either a true or false on whether they are in the group or not.

Player:GetRankInGroup(000000) can be used to get the rank number in said group (0 if they are not in it)

This discussion is preserved as it was. New answers, comments, and votes are closed.