Tool Pickup problem

Hi, I have a LocalScript that is supposed to clone a tool from the ReplicatedStorage and put it in the workspace for the player to pass over and pick it up, this doesn’t work, I think the problem is that the tool has been cloned from the client.
I tried a remoteEvent but it gives an error:

-- LocalScript Clone script
local spawnore = game.ReplicatedStorage.Items.AmethystOre
local clone = spawnore:Clone()
clone.Parent = workspace
clone.Handle.Position = locate.Position
-- LocalScript with RemoteEvent
local clickdetector = script.Parent -- The Stone block containing the ore with a clickdetector
local locate = clickdetector.Parent
local spawnore = game.ReplicatedStorage.Items.AmethystOre
SpawnOre:FireServer(spawnore, locate)
-- ServerScript that catch RemoteEvent
local SpawnOre = game:GetService("ReplicatedStorage").Remotes:WaitForChild("SpawnOre")
SpawnOre.OnServerEvent:Connect(function(spawnore, locate)
	local clone = spawnore:Clone()
	clone.Parent = game.Workspace
	clone.Handle.Position = locate.Position
end)
-- Error with ServerScript (line 5)
ServerScriptService.SpawnOre:5: attempt to index nil with 'Parent'

Thanks

you can check this post i made, it can maybe help you:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.