--[[
button.MouseButton1Click:Connect(function()
	local pos = userInputService:GetMouseLocation()
	--local relativePosition = pos - frame.Parent.AbsolutePosition
	frame.Position = UDim2.new(0, pos.X, 0, pos.Y - 36)
end)
]]

for i,v in pairs (script.Parent.Parent.Folder:GetChildren()) do
	v.MouseEnter:Connect(function()
		canfollow = true
		print("l")
		frame.Text = v.showtext.Value

		game:GetService("RunService").RenderStepped:Connect(function()
			if canfollow == true then
				local pos = userInputService:GetMouseLocation()
				frame.Position = UDim2.new(0, pos.X -50, 0, pos.Y - 60)
				frame.Visible = true
			else
			end
		end)

		v.MouseLeave:Connect(function()
			canfollow = false
			frame.Visible = false
			frame.Text = ""
		end)
	end)

end
