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.
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)?
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
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