local desc = game.StarterGui:WaitForChild("MainGUI"):WaitForChild("Description")
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local function onParentHover()
desc.Visible = true
print("Debug")
desc.Title.Text = "Seaweed Wall"
desc.Desc.Text = "The seaweed wall blocks the path of crabs, however the crabs can destroy the seaweed walls so it does not fully prevent them from passing. The seaweed wall survives 6 hits"
end
local function onParentHoverEnd()
desc.Visible = false
end
imageButton.MouseEnter:Connect(function()
onParentHover()
end)
imageButton.MouseLeave:Connect(function()
onParentHoverEnd()
end)
#fixed
1 messages · Page 1 of 1 (latest)
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
-- Wait for the player's GUI to be ready
local playerGui = plr:WaitForChild("PlayerGui")
-- Wait for the MainGUI to exist in PlayerGui (not StarterGui)
local mainGUI = playerGui:WaitForChild("MainGUI")
local desc = mainGUI:WaitForChild("Description")
local function onParentHover()
desc.Visible = true
print("Debug")
desc.Title.Text = "Seaweed Wall"
desc.Desc.Text = "The seaweed wall blocks the path of crabs, however the crabs can destroy the seaweed walls so it does not fully prevent them from passing. The seaweed wall survives 6 hits"
end
local function onParentHoverEnd()
desc.Visible = false
end
imageButton.MouseEnter:Connect(function()
onParentHover()
end)
imageButton.MouseLeave:Connect(function()
onParentHoverEnd()
end)```
i fixed it now, thank you tho