When a player joins the game, I have a script that adds a knife, pan, and box to their right hand (all of these are attached with a Motor6D.) With a basic R15 package, it works fine. However, when you switch the package to something such as the “Man” package, it says the item is added, but when I try to find it with a different script, I receive an error that says it couldn’t find the pan under the player’s RightHand. Any solutions to fix this?
Inserting script
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local RightHand = character:WaitForChild("RightHand")
local Knife = script.Knife:Clone()
local KnifeHandle = script.KnifeHandle:Clone()
local Box = script.Box:Clone()
local BoxHandle = script.BoxHandle:Clone()
local Pan = script.Pan:Clone()
local PanHandle = script.PanHandle:Clone()
Knife.Parent = RightHand
KnifeHandle.Parent = RightHand
KnifeHandle.Part0 = RightHand
KnifeHandle.Part1 = RightHand.Knife
Box.Parent = RightHand
BoxHandle.Parent = RightHand
BoxHandle.Part0 = RightHand
BoxHandle.Part1 = RightHand.Box
Pan.Parent = RightHand
PanHandle.Parent = RightHand
PanHandle.Part0 = RightHand
PanHandle.Part1 = RightHand.Pan
print("Items added")
Pan finding script
game.ReplicatedStorage.BanPanEvent.OnServerEvent:Connect(function(player, Executor, Victims)
workspace:FindFirstChild(player.Name).RightHand.Pan.Transparency = 0
workspace:FindFirstChild(player.Name).RightHand.Pan.Pan.Transparency = 0
end)