local ReplicatedStorage = game:GetService("ReplicatedStorage") local cloneEvent = game.ReplicatedStorage.cloneEvent local function cloneTool(Player,Tool) script.Weapon.Value = Tool local clone = game.Lighting:FindFirstChild(script.Weapon.Value):Clone() clone.Parent = game.Players:FindFirstChild(Player).Backpack end cloneEvent.OnServerEvent:Connect(cloneTool)
This suppose to copy a weapon with a lauched name from lightning
but it give this error: Workspace.Cloner:7: attempt to index nil with 'Clone'
I think you need to get Lighting service
local Lighting = game:GetService("Lighting")
This may fix the issue