Hey! I know that there is a lot of posts on this issue already, though, all of them are cloning the tools in a LocalScript. I’m cloning the tools in a ServerScript. The tools are mostly Carbon Engine weapons. Before cloning, they work fine, although after they’re cloned, they do not work anymore. Equipping the tool doesn’t do anything and F9 returns bunch of mostly CE RemoteEvent related errors.
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(p)
if p then
p.CharacterAppearanceLoaded:Connect(function()
local Folder = script:FindFirstChild(p.Team.Name)
if Folder then
local Tools = Folder:FindFirstChild("Tools")
if Tools then
for i,v in pairs(Tools:GetChildren()) do
if not p.Backpack:FindFirstChild(v) then
v:Clone().Parent = p.Backpack
end
end
end
end
end)
end
end)
You speak about RemoteEvent but you do not show any Remote. The only issue in your current code is p.Backpack:FindFirstChild(v) because you’re sending an instance instead of a string, so you’re always finding nothing.
p.Backpack:FindFirstChild(v.Name)
I have the impression that your problem does not come from the code you published.
Well the main important thing to note is that if there are Scripts in the tool themselves and that original tool is located in a container in which a Script can run (which I’m assuming is ServerScriptService in this case), that Tool script will run and can unintentionally break. Consider moving your assets to ServerStorage in which Scripts with the Legacy RunContext cannot run on and see if that fixes your problems.
That is something we cannot help you with unless you provide an example of those tool scripts.
Are the tool scripts RunContext set to Legacy when you parent them into ServerStorage?