I am making a metal/tool detector and i need it to be able to put all the tools a player has into a surface gui, thanks for the help
What I have so far is this
local playervalue = script.Parent.Parent.guis.main.Player
local toolsgui = script.Parent.Parent.guis.main.SurfaceGui.Tools
script.Parent.Touched:Connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) then
local player = game.Players:FindFirstChild(hit.Parent.Name)
local tools = player.Backpack:GetChildren()
playervalue.Value = game.Players:FindFirstChild(hit.Parent.Name)
end
end)
