How do I make the sword visible to the people and working?

Hello. Recently I didn’t know how to make a sword visible to players and working, but this is the script:

local p = game.Players.LocalPlayer

local tool = script.Parent.AzureSword:Clone()
tool.Parent = p.Backpack


I am assuming that you are running this in a local script. What you need to do is use a remote event fired to the server, then clone and parent the sword using a server script, and then it will replicate to all players