Trying to make one, Most of my past attempts have failed.
Any help would be appreciated.
Trying to make one, Most of my past attempts have failed.
Any help would be appreciated.
You can use a PlayerAdded
/CharacterAdded
event & use the function GetRankInGroup
or GetRoleInGroup
whenever a Character loads into the workspace like so:
local Hat = game.ServerStorage.Hat --Where the Hat is
local GroupID = 00000 --Whatever the ID is
local RankRequirement = 200
game.Players.PlayerAdded:Connect(function(Player) --The player is the one who will be joining
Player.CharacterAdded:Connect(function(Character) --The character when they get added in
if Player:GetRankInGroup(GroupID) > 200 then
print(Player.Name.." is able to obtain this hat!")
local HatClone = Hat:Clone()
HatClone.Parent = Character --Cloning a hat & parenting it to the character model
end
end)
end)
How could i add a bit to that script where it welds a model to a certain part of the player?
I believe you’d need to first create a new weld, change its Part0/Part1 properties, then configure the Model’s PrimaryPart
CFrame to where the Character
is using Welds
Just in-case you are unaware, this only works for accessories I believe. I’ve posted something on how you make a model based hat giver.
Not sure why you’re bumping this post, it’s literally 3 months old
I’m aware, Model Based Gears (Using InsertService
) You’d have to break down, from the Model > Accessory/Hat in order to get it that way
Thanks to all of you for your feedback, But i managed to do it in the end.