-
What do you want to achieve?
I want that when I hover the cursor over the frame, the preview of the item and all its details should be activated -
What is the issue?
Script does not throw errors, but does not execute
local inventoryUI = gui.MainInventory
local playerInventory = gui.MainInventory.Inventory.BackpackBG.Backpack.InventoryList
local isHovering = false
local function itemDetails()
for i, itemButton in pairs(playerInventory) do
if itemButton.ClassName == "ImageButton" and itemButton.Name ~= "ExampleItem" then
itemButton.MouseEnter:Connect(function()
isHovering = true
end)
itemButton.MouseLeave:Connect(function()
isHovering = false
end)
RunService.RenderStepped:Connect(function()
toolDetails.Position = UDim2.fromOffset(playerMouse.X, playerMouse.Y)
toolDetails.Visible = isHovering
end)
inventoryUI.Parent.ToolDetails.Visible = true
end
end
end
while true do
task.wait(1)
itemDetails()
end
-
What solutions have you tried so far?
Generally it’s documentation and dev forum