Hey, so ive been trying to make it when i hover over a button, that it then explains info about the button, For example buying something from a shop. But for some reason it just doesnt apear. I tried watching tutorials and still the same result, ive even rewritten my code to fit with the tutorial. What am i doing wrong here?

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Enter = false
local Tip = script.Parent.Tip
local Text = "This item costs 1000 gems. Dont have enough? Just go to the gem shop."

script.Parent.MouseEnter:Connect(function()
	Tip.Text = Text
	Tip.Visible = true
	Enter = true
end)

script.Parent.MouseLeave:Connect(function()
	Tip.Visible = false
	Enter = false
end)

Mouse.Move:connect(function()
	if Enter then
		Tip.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
	end
end)

5 comments

0

Any errors?

0

Nope, i get nothing in console. Not in client. And in server niether (But that doesnt matter cus its a local script)

0

Try capatlizing the connect function in line 18

0

Where is the actual script located?

0

Hi sorrry i had to sleep it was like 1am when i asked this question. The script is located in a button, with the text label. Nones gonna reply now probally so rip