I want to achieve my StarterCharacter being able to hold a tool.
What is the issue?
The issue is that whenever I equip the tool it doesn’t show or it’s somewhere else on the map.
Here is the StarterCharacter,
Sword,
What solutions have you tried so far?
I’ve tried looking at other people’s problems about StarterCharacters and the tools.
I’ve tried solutions with accessories and scripts but those don’t seem to work.
I’ve also tried using it as a tool but it just fell.
(Accessory script)
local Sword = game.ServerStorage.Tools.Sword
game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRankInGroup(7700304) == 200 then
print("given knight sword")
plr.Character.Humanoid:AddAccessory(Sword:Clone())
end
end)
The accessory is inside ServerStorage, it has a attachment as well with the StarterCharacter having an attachment.
Thanks if you do have a solution because I’ve been stuck on this for a while now.
Are you calling your StarterCharacter StarterCharacter and placing it under StarterPlayer? If not, your StarterCharacter won’t load in, and if you have it inside that Character, it just won’t work.
I think I need a little more information with how you have this entire system setup. I don’t fully know what the goal is here.
Well that Workspace thing was pretty much all I needed to know that this simply won’t work. Personally what I would do, is setup a system so when the user joins the game, it checks their rank (as you have done) however, you’ll need a StarterCharacter under StarterPlayer, and have it named exactly as that. I’d make it an empty rig so you can apply Hats, Shirts, etc. when you do the Rank checker script.
You might need to create a ModuleScript with embedded tables to figure out exactly what you need so you’ll avoid a long Else-if chain. You can read up on ModuleScript uses here: ModuleScript | Roblox Creator Documentation
Something like this would be a huge help, although it looks confusing
-- Table with Embedded Tables for finding information based on Ranks --
local RankedCharacters = {
GroupRanks = {
Knight = {
ShirtId = "rbxassetid://0"
PantsId = "rbxassetid://0"
Hat = game.ServerStorage.Hats.HatNameHere
},
SomeOtherRank = {
ShirtId = "rbxassetid://0"
PantsId = "rbxassetid://0"
Hat = game.ServerStorage.Hats.HatNameHere
}
}
}
return RankedCharacters
I’m not too educated in the custom rig department so I can’t really help beyond this point. Hopefully someone who works with custom rigs will have more knowledge then I do. I really only know how to do this with the standard R6 / R15 rigs.