I have a script that clones tools into player's backpacks but the tools are not functioning, I can hold them just find but things like animations don't play, here is the code I am using to clone the tools:
Variables :
local item = script.Parent.Parent
local Rep = game:GetService("ReplicatedStorage")
local toolCloneReplicated = Rep:WaitForChild("IngameItems")
local tool = item:FindFirstChildOfClass("Tool")
Cloning Code:
local toolName = tool.Name
print("Looking for "..toolName)
if toolCloneReplicated:FindFirstChild(toolName) then
local toolFind = toolCloneReplicated:FindFirstChild(toolName)
print("Found")
local toolCloneToBackpack = toolFind:Clone()
toolCloneToBackpack.Parent = backpack
end
end
EDIT : I might have a fix for this that uses a Remote Event as it is being moved by the client and the animations and damage are server scripts, if anyone could confirm or deny this that would be great.

4 comments
This is because there is more to this script and this is just a portiion of it, backpack is "player:FindFirstChildOfClass("Backpack") " and I get the tool fine, it just doesn't work
backpack is not a class. it should be :FindFirstChild("Backpack")
backpack is not a class. it should be :FindFirstChild("Backpack")
backpack is not a class. it should be :FindFirstChild("Backpack")