local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
local tool = game.ServerStorage.Sword:Clone()
tool.Parent = player.Backpack
end)
end)tool.Parent = player.Backpackscript.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.GiveTool:FireServer()
end)game.ReplicatedStorage.GiveTool.OnServerEvent:Connect(function(player)
local tool = game.ServerStorage.Sword:Clone()
tool.Parent = player.Backpack
end)script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local tool = game.ServerStorage.Sword:Clone()
tool.Parent = player.Backpack
end
end)