You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a program that gets prints every item of a certain price that a player has made
-
What is the issue? Include screenshots / videos if possible!
I can’t do it
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried using things on the devforum and only one showed up and it was broken
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I really do not know how to help, I just need a basic understanding of this
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Here is a starter code to kick things going.
First off, you’d need to add in a Local Script, I’d added mine inside of StarterGUI. Next, I’ve typed the following inside:
local Player = game:GetService("Players").LocalPlayer --Gets the player.
task.wait(3) --DON'T remove this! This is so that the game has enough time to load in the player.
for _, item in pairs(Player.Backpack:GetChildren()) do --Looping through the players backpack/inventory? Idk
if item:IsA("Tool") then --Whenever inside is a tool.
print("USER HAS "..item.Name) -- Prints a message in output what gear they have.
end
end
I meant assets the player has created
Oh, well, sorry but I don’t know how to get all of the catalog items a player has created. Although I guess you can check here:
Is There A Way Of Checking Player’s Catalog Assets In-Game? - Help and Feedback / Scripting Support - Developer Forum | Roblox
that is getting the items on their avatar, not the items they have created
Oh, well, I don’t know. Sorry.