local gui = plr:WaitForChild("PlayerGui"):WaitForChild("Mouse")
while true do
wait(0.5)
if mouse.Target and mouse.Target.Parent:FindFirstChild("Collect") then
-- Can i collect this
gui.TextLabel.Visible = true
gui.TextLabel.Text = mouse.Target.Parent.Name
gui.TextLabel.Position = UDim2.new(mouse.X,0,mouse.Y,0)
else
gui.TextLabel.Visible = false
end
end
COMMUNITY QUESTION
Can someone help me with this gui which is supposed to follow the mouse?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Any errors?
sadly no
@OP try this: UDim2.new(0, mouse.X, 0, mouse.Y)
thanks that worked
just forgot there are 3 axis i assume? XD
No, UDim2 uses 4 values. ^