So i downloaded this invetory system from youtube ( Roblox Studio - Inventory System - YouTube)
I really like it but i want to modify a few things and try to further enhance it. I ran into a problem which i dont really know how to fix. I insert and image id into the tools textureid property but the image doesn’t show up in the hotbar or invetory screen. is it possible that was disabled in a script?
Do you have any scripts that you think it’s causing the issue? Can you show it to us? Please be more descriptive.
Yes. here is the script im working with. i think the issue is that it’s using “BackpackImage.TextName” and not “BackpackImage.TextureId” i tried tweaking some things but nothing worked yet.
local plr = script.Parent.Parent.Parent.Parent
local function newUI(Module)
local Frame = script.Frame:Clone()
Frame.Name = Module.Name
Frame.BackpackImage.TextName.Text = Module.TextName
for i,v in pairs(plr.Backpacks:GetChildren()) do
if v.Name == Frame.Name then
if v.Equipped.Value == false then
Frame.BackgroundColor3 = Color3.new(0, 1, 0)
Frame.LayoutOrder = 0
else
Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
Frame.LayoutOrder = 1
end
else
Frame.BackgroundColor3 = Color3.new(0, 0.333333, 1)
Frame.LayoutOrder = 0
end
end
wait(0.20)
Frame.BackpackImage.TextName.Rotation = math.random(-200, 200)
Frame.Parent =script.Parent.ScrollingFrame
end
local Module = require(game.ReplicatedStorage.Backpacks.Backpacks)
script.Parent.Parent.Background.BackpackButton.MouseButton1Click:Connect(function()
for i,v in pairs(script.Parent.ScrollingFrame:GetChildren()) do
if v.ClassName == "Frame" then
v:Destroy()
end
end
game.Players[plr.Name].PlayerGui.Inventory.Backpacks.Visible = true
script.Parent.ScrollingFrame.Visible = false
script.Parent.Loading.Visible = true
wait(math.random(2, 8))
script.Parent.ScrollingFrame.Visible = true
script.Parent.Loading.Visible = false
for err, v299 in pairs(Module) do
newUI(v299)
end
end)
I figured it out. Theres a script in replicated storage which identifies what items can go in the invetory as well as the weight and image of the tool.
local module = {
["Apple"] = {
Name = "Apple",
Amount = 1,
Desc = "A healthy apple",
Type = "Consumable",
Weight = 5,
Selling = 15,
Picture = 137510460,
Dropable = true,
Sell = true,