So here i go again asking i just need to know what did i do wrong, because this is the script
local tool = script.Parent
local player = game.Players.player
tool.Equipped:connect(function(mouse)
print("Tool equipped!")
tool.Activated:Connect(function()
print("Mouse pressed!")
local tool2 = game.Lighting.Revolver
tool2:Clone().Parent = player.Backpack
wait(0.5)
tool:Destroy()
end)
end)
and after i test it out it said Backpack isn't a valid member of Player (this is not local script this is normal script) i need to know why it doesn't read player's inventory.

3 comments
LocalPlayercan only be indexed fromLocalScriptsoh thank you i will try it out
nope doesnt work