You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I would like this to be centered on the cursor’s X axis, I am not sure what is wrong with it.
-
What is the issue? Include screenshots / videos if possible!
Sorry if this is hard to depict but it is not parented to the cursor. -
What solutions have you tried so far?
Frame.Position = UDim2.new(0,Mouse.X - 50,0)
I feel uncomfortable using this because I am uncertain if this is for my resolution. In other words I do not know what is causing this problem.
LocalScript
local Player = game:GetService("Players").LocalPlayer
local Mouse = Player:GetMouse()
local StarterGui = game:GetService("StarterGui")
local Frame = script.Parent.Parent.HoverText
for i,button in pairs(script.Parent.Frame:GetChildren()) do
if button:IsA("TextLabel") then
button.MouseEnter:Connect(function()
Frame.Visible = true
end)
button.MouseLeave:Connect(function()
Frame.Visible = false
end)
Mouse.Move:Connect(function()
Frame.Position = UDim2.new(0,Mouse.X,0)
end)
end
end