You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want my Frame to visible
-
What is the issue? My Frame isn’t Visible
-
What solutions have you tried so far?
- Did you look for solutions on the Developer Hub? Yes
- Did you try asking ChatGPT? Yes
BONUS. More?
- Feel free to ask me, I will eat a food, Brb
- I know it’s a Scripting Support but it’s contains script
- I’m scared to get flagged, The previous posts got flagged
- Feel free to ask me!
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!
local UserInputService = game:GetService("UserInputService")
local ImageButton = script.Parent
local infomationFrame = game.StarterGui:WaitForChild("inventoryUI"):WaitForChild("infomationFrame")
infomationFrame.Visible = false
-- Function to update information frame content
local function updateInformation(itemName, description)
infomationFrame.NameLabel.Text = itemName
infomationFrame.DescriptionLabel.Text = description
end
-- MouseMoved event handler
ImageButton.MouseMoved:Connect(function()
-- Get the position of the mouse relative to the ImageButton
local mousePosition = UDim2.new(0, 0, 0, 0)
mousePosition = UserInputService:GetMouseLocation()
-- Update the position of the information frame
infomationFrame.Position = UDim2.new(0, mousePosition.X + 10, 0, mousePosition.Y + 10)
-- Update information content
updateInformation(ImageButton.Parent.NameLabel.Text, "+1 Speed for 4 seconds, Cooldown 8 seconds.")
-- Show the information frame
infomationFrame.Visible = true
end)
-- MouseLeave event handler
ImageButton.MouseLeave:Connect(function()
-- Hide the information frame
infomationFrame.Visible = false
end)
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.