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.
Helmet Morph on Join, Requires rank?
2 answers
Use :IsInGroup
Example:
game.Players.PlayerAdded:connect(function(plr)
if plr:IsInGroup(Your GroupID) then
--Your code
end
end)
You can read more about it here:
https://developer.roblox.com/en-us/api-reference/function/Player/IsInGroup
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.

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