Katana won't appear when clicked

Before flagging this post, please tell me if the topic is not in the right place.

So, i’m having trouble with my katana. I load in the game, go to the shop and buy the katana. I equip it, but it won’t show up in my hand. Help appreciated.

Screenshots:

Sorry for any vagueness or misunderstanding here.

1 Like

The katana might be spawning elsewhere. You can use a plugin like “Tool Grip Editor” to place it perfectly.

The Tool Katana might have the “Require Handle” turned false. Check that also.

Other than that, can’t do much without the katana file.

2 Likes

Looking quickly at the qPerfectionWeld script, maybe try to ungroup the KatanaParts model since it says that it welds the model and its children, doesn’t mention anything about descendants.

Or it could be an issue with the katana itself, check everything to see if all is good (grip, parts, etc)

OR from a quick read through your post again, how is the katan given when bought? From the server (regular script) or the client (local script)?

2 Likes

I tried ungrouping it, still doesn’t work.

Does it appear properly when you put it in StarterPack and equip it? If so, then it’s an issue with how the tool is given when bought

1 Like

Could you upload the katana model here for testing?

1 Like

Can you link the plugin please? Require handle is on

Okay so in StarterPack it works. Checking the scripts.

Then it’s a problem with how you’re giving the tool when buying it. Are you giving the tool locally from a local script? If so, that wont work, the tool needs to be given from the server from a regular script.

If the shop is made up of guis, you need a RemoteEvent that the client fires to the server to give the katana. If you odnt know how they work, this should be of help

Okay, btw the script for giving out the katana is this:

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function(click)
if player.leaderstats.Cash.Value >= 50 then
player.leaderstats.Cash.Value = player.leaderstats.Cash.Value -50

	game.ReplicatedStorage.Tools.Katana:Clone().Parent = player:WaitForChild("Backpack")
	player:WaitForChild("Backpack").IronSword.Parent = game.ServerStorage
end

end)

It’s local, you need a remote event to handle the subtraction of cash and the cloning of the katana. Refer to the hyperlink so you cna understand how they work.

Also your player:WaitForChild("Backpack").IronSword.Parent = game.ServerStorage will error if the player doesn’t have an IronSword, use FindFirstChild to see first if there’s a child called IronSword, then reparent

Do I put the remote event inside the tools folder or should the parent just be replicated storage

I recommend ReplicatedStorage since RemoteEvents aren’t tools, but the parent shouldn’t matter as long as the both the server and client can see it

Nothing is working, i’ll just go to blender and make the parts one part.

What is the code that you tried to use but didn’t work?

I literally just deleted it and left roblox studio to go to blender-