CustomRig Tools

  1. What do you want to achieve?

I want to achieve my StarterCharacter being able to hold a tool.

  1. 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,

image

Sword,

image

image

  1. 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.

2 Likes

How are you utilizing tools? Are they the Default Roblox tools? Are you hooking an Equip type function with UserInputService or ContextActionService?

1 Like

Oh yes, I’ve tried roblox tools and I’ve tried the UserInputService with equip and unequipped.

1 Like

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.

1 Like

My StarterCharacter goes inside the Workspace because every rank in the group gets a certain character. Also what information do you need.

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.

Oh okay, thank you for trying to help!

1 Like