Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Change position of gui to mouse position help?

Asked by
NotSoNorm 777 Moderation Voter
9 years ago

local script

It prints the positon of the mouse as offset so I put it as the UDim2 and it didn't work, It just dissapears.

player = game.Players.LocalPlayer
mouse = player:GetMouse()

script.Parent.MouseEnter:connect(function()
    script.Parent.Parent.Parent.HoverCloner.Visible = true
    script.Parent.Parent.Parent.HoverCloner.TextLabel.Text = script.Parent.Name
    script.Parent.Parent.Parent.HoverCloner.Position = UDim2.new(0,mouse.X,0,mouse.Y)
    print("HoverCloner moved to: "..mouse.X,mouse.Y)
    wait(2)
    script.Parent.Parent.Parent.HoverCloner.Visible = false
end)
0
is HoverCloner inside of another frame that might be offset itself? TheGuyWithAShortName 673 — 9y

Answer this question