So i’m trying to make a description pop-up for each tower whenever they are hovered on. I don’t know how to do this…
local TextButton = script.Parent
local towerInfo = script.Parent.Parent.Parent.Parent.TowerInfo
local SFX = workspace.SFX
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local towers = require(ReplicatedStorage:WaitForChild("TowerShop"))
TextButton.MouseEnter:Connect(function()
SFX.hover:Play()
towerInfo.Visible = true
end)
TextButton.MouseLeave:Connect(function()
towerInfo.Visible = false
end)
this is the TowerShop Module Script’s Content:
local TowerShop = {
["Rocker"] = {
["Name"] = "Rocker",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "He can play his way in.",
["Price"] = 150,
},
["Magician"] = {
["Name"] = "Magician",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "This magic geezer can help defend your base",
["Price"] = 100,
},
["Soldier"] = {
["Name"] = "Soldier",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "Recruit from R6S",
["Price"] = 50,
},
["Birdy"] = {
["Name"] = "Birdy",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "Constantly summons battle birds that swarm groups of enemies for a while then flies off.",
["Price"] = 3500,
},
["Chemical Tyrant"] = {
["Name"] = "Chemical Tyrant",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "This mad scientist can switch between a variety of chemical attacks to adjust to whatever enemies are present in the moment.",
["Price"] = 4000,
},
["Agent 69"] = {
["Name"] = "Agent 69",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "An elite from [REDACTED] has arrived to help by providing bounty funds aswell.",
["Price"] = 2500,
},
["Crossbower"] = {
["Name"] = "Crossbower",
["ImageAsset"] = "rbxassetid://7471197733",
["Description"] = "What happens when medieval France meets modern tech? Well her I guess, the sheer damage she outputs makes the geneva convention look like a suggestion",
["Price"] = 20000,
},
}
return TowerShop
I tried going into the Table’s documents but I couldn’t find anything that’s related. If there was then I’m either blind or I did not read it or skipped it. I tried searching for problems like mine online and I couldn’t find any, then again, I either didn’t see it or something.