Player.GiveItemByServer = function(PLR, Item, Amount)
local BackpackEvent = game.ReplicatedStorage.ToolsM.Backpack
BackpackEvent:FireClient(game.Players.ZINTICK, Item, Amount)
if PLR.Backpack:FindFirstChild(Item) == nil then
print("ss") -- prints ss
local c = game.ServerStorage.Usables:FindFirstChild(Item):Clone()
c.Parent = PLR.Character
end
end
Player.GiveItemByServer = function(PLR, Item, Amount)
local BackpackEvent = game.ReplicatedStorage.ToolsM.Backpack
BackpackEvent:FireClient(game.Players.ZINTICK, Item, Amount)
if PLR.Backpack:FindFirstChild(Item) or PLR.Character:FindFirstChild(Item) then return end
game.ServerStorage.Usables:FindFirstChild(Item):Clone().Parent = PLR.Backpack
end
You need to give players tools through the backpack not their character