Try changing to 999-------------------------------
If that doesn’t work, then I have a question to ask: When you try to change the Image on the ImageLabel, does something popup, with an Add Image Button?
wdym Add Image Button its just blank thats all, nothing pops up
Is Allow HTTP Requests On??? -
yes http requests is on
It works perfectly fine for me.
can i see?
Change the image changer script to a server script.
a normal script in serverscriptservice?
No. Copy the “LocalScript” Source, then delete, then put “Script” in same place where “LocalScript” was then paste the copied into the “Script”.
Like this right?
it still doesn’t work
Can I have edit access to see what’s wrong ?
Does the text change to “wood”? (doesn’t have to be literal)--------
yeah im pretty sure it does but im not 100%
Try changing it manually-------------
shoudl i do a mousebutton1click event?
Try MouseButton1Down ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
IF text doesn’t change to wood then:
I think I see the problem. What if can’t find item list button right away. Change InventoryHandler thing to this:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DropItem = ReplicatedStorage:WaitForChild("DropItem")
wait(3)
local player = game.Players.LocalPlayer
local Inventory = player:WaitForChild("Inventory")
local MainGui = script.Parent
local InventoryGui = MainGui:WaitForChild("InventoryGui")
for i,itemValue in pairs(Inventory:GetChildren()) do
itemValue.Changed:Connect(function()
local ItemGui = InventoryGui.ItemList:FindFirstChild(itemValue.Name)
if ItemGui then
ItemGui.ItemQuantity.Text = itemValue.Value
if itemValue.Value <= 0 then
ItemGui.Visible = false
else
ItemGui.Visible = true
end
end
end)
end
repeat wait() until #InventoryGui.ItemList:GetDescendants() > 1 -- 1 Is the grid layout
for i, ItemButton in pairs(InventoryGui.ItemList:GetDescendants()) do
if ItemButton:IsA("TextButton") then
ItemButton.MouseButton1Down:Connect(function()
local itemFrame = ItemButton.Parent
local itemValue = Inventory:FindFirstChild(itemFrame.Name)
if itemValue.Value > 0 then
local DropItem = DropItem:InvokeServer(itemFrame.Name) -- We need to make this do something
if DropItem == true then
if itemValue.Value > 0 then
itemFrame.ItemQuantity.Text = itemValue.Value
else
itemFrame.Visible = false
end
end
end
end)
end
end