Hello! Im making a GUI that spawns a part and the position of the part goes Is basically the player Itself, however the problem Is the part doesn't teleport (Or goes) to the player Itself, this Is the script:
script.Parent.MouseButton1Down:Connect(function(plr)
local Part = Instance.new("Part")
Part.Size = Vector3.new(4.01, 5.464, 2.519)
Part.Parent = game.Workspace
Part.Position = plr.Character.HumanoidRootPart.Position
end)

1 comment
You need to define plr, and you need a remote event so that you can transfer the data to the server