Im trying to make a gui on a brick than when the brick is inserted it the brick follows the player
p = Instance.new("Part", game.Workspace) hum = script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Humanoid") p.Position = CFrame.new(10, 15, 10) * hum.Parent.Torso.CFrame.lookVector
If this is the only thing in the script then change
p.Position = CFrame.new(10, 15, 10) * hum.Parent.Torso.CFrame.lookVector
to
while wait() do p.Position = CFrame.new(10, 15, 10) * hum.Parent.Torso.CFrame.lookVector end