I made a bit of code like this: When you hover your mouse over a part, a GUI shows up. Instead, I want to replace with a player whole body. I still don't know where should you put the script into. Thanks for helping! This is what I've made so far!
local mouse = game.Players.LocalPlayer:getMouse() mouse.Move:connect(function() script.Parent.Parent.TextLabel.Position = UDim2.new(0, mouse.X, 0, mouse.Y) end) script.Parent.MouseEnter:connect(function() script.Parent.Parent.TextLabel.Visible = true end) script.Parent.MouseLeave:connect(function() script.Parent.Parent.TextLabel.Visible = false end)
My Code:
-- Obviously needs to be a local script. wait(1) plr = game.Players.LocalPlayer char = plr.Character gui = script.Parent.Parent cd = Instance.new('ClickDetector', char.HumanoidRootPart) cd.MouseEnter:Connect(function() gui.Visible = true end) cd.MouseLeave:Connect(function() gui.Visible = false end)