I can get the names of all the tools in starter gear but how would I actually use those values?
Script that would be in a GUI
local repStorage = game:GetService("ReplicatedStorage")
local remotesFolder = repStorage:WaitForChild("GameRemotes")
local inventoryFolder = remotesFolder:WaitForChild("Inventory")
local findToolRemote = inventoryFolder:WaitForChild("GetToolEvent")
--// Store everything it gets from this into a table
findToolRemote:FireServer()
Script in server script service
local repStorage = game:GetService("ReplicatedStorage")
local remotesFolder = repStorage:WaitForChild("GameRemotes")
local inventoryFolder = remotesFolder:WaitForChild("Inventory")
local findToolRemote = inventoryFolder:WaitForChild("GetToolEvent")
findToolRemote.OnServerEvent:Connect(function(plr)
local startergear = plr:WaitForChild("StarterGear")
local backpack = plr:WaitForChild("Backpack")
for i,tool in pairs(startergear:GetChildren()) do
if tool:IsA("Tool") then
--// Add tool to a table the client can use
end
end
end)
How would I use the values the server script gets?

8 comments
what do u want to do with the values? there's nothing wrong with this code, other than your
if true then, which is completely pointlessThis is every confusing, print Tool.Name, followed by “Value it pulls” isn’t specific enough
its also
:IsA(), not:isA()What I'm trying to do is turn every tool from startergear into a GUI button. Like an inventory. But you can't mess with the GUI from the server and the client can't mess with "StarterGear"
Edited the code to clear up what I'm trying to make happen
Why do you need startergear. The children in that folder should be inside of the backpack already.
Use a RemoteFunction instead: table.insert(sometable, tool) return sometable. Also, xPolariums point.
Okay and where would the remote function go?