My code:
local Zn = script.Parent
Zn.ProximityPrompt.Triggered:Connect(function(hit)
-- Here I want to delete all player backpack
end)
My code:
local Zn = script.Parent
Zn.ProximityPrompt.Triggered:Connect(function(hit)
-- Here I want to delete all player backpack
end)
ProxProm.Triggered: Connect (function (proxProm, player)
for i,v in pairs(player.Backpack:GetChildren()) do
if v:IsA("Tool") then
v: Destroy ()
end
end
end
local Zn = script.Parent
Zn.ProximityPrompt.Triggered:Connect(function(player)
local backpack = player:FindFirstChild("Backpack");
if backpack ~= nil then
backpack:ClearAllChildren(); -- clears all child instances of the backpack
end;
end)
all players or only single player who interacted?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.